forked from huzhushan/vue3-element-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
版本升级到v3:element-plus升级到v2、引入国际化、pinia
- Loading branch information
Showing
75 changed files
with
3,186 additions
and
2,916 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
* @version: | ||
* @Date: 2021-04-20 11:06:21 | ||
* @LastEditors: [email protected] | ||
* @LastEditTime: 2021-04-21 12:51:42 | ||
* @LastEditTime: 2022-09-24 16:29:19 | ||
* @Author: [email protected] | ||
* @HomePage: https://huzhushan.gitee.io/vue3-element-admin | ||
* @Github: https://github.com/huzhushan/vue3-element-admin | ||
|
@@ -71,5 +71,6 @@ module.exports = { | |
'vue/require-default-prop': 'off', | ||
'vue/no-unused-components': 'warn', | ||
'vue/no-setup-props-destructure': 'off', | ||
'vue/script-setup-uses-vars': 'off', | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
* @version: | ||
* @Date: 2021-04-20 11:06:21 | ||
* @LastEditors: [email protected] | ||
* @LastEditTime: 2021-07-26 16:43:22 | ||
* @LastEditTime: 2022-09-27 18:51:22 | ||
* @Author: [email protected] | ||
* @HomePage: https://huzhushan.gitee.io/vue3-element-admin | ||
* @Github: https://github.com/huzhushan/vue3-element-admin | ||
|
@@ -51,10 +51,10 @@ export default [ | |
name: 'testEdit', | ||
title: '编辑', | ||
}, | ||
{ | ||
name: 'testAuth', | ||
title: '权限测试', | ||
}, | ||
// { | ||
// name: 'testAuth', | ||
// title: '权限测试', | ||
// }, | ||
{ | ||
name: 'test-cache', | ||
title: '该页面可缓存', | ||
|
@@ -83,12 +83,6 @@ export default [ | |
}, | ||
] | ||
|
||
if (query.role === 'admin') | ||
childs.push({ | ||
name: 'testNoAuth', | ||
title: '权限页面', | ||
}) | ||
|
||
return { | ||
code: 200, | ||
message: '获取菜单成功', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* @version: | ||
* @Date: 2021-04-20 11:06:21 | ||
* @LastEditors: [email protected] | ||
* @LastEditTime: 2021-04-21 09:39:02 | ||
* @LastEditTime: 2022-09-25 12:27:50 | ||
* @Author: [email protected] | ||
* @HomePage: https://huzhushan.gitee.io/vue3-element-admin | ||
* @Github: https://github.com/huzhushan/vue3-element-admin | ||
|
@@ -44,4 +44,28 @@ export default [ | |
data: null, | ||
}, | ||
}, | ||
// 请求用户列表 | ||
{ | ||
url: '/api/test/users', | ||
method: 'post', | ||
timeout: 1000, | ||
response: () => { | ||
// 响应内容 | ||
return { | ||
code: 200, | ||
message: '获取成功', | ||
data: { | ||
'list|10': [ | ||
{ | ||
'id|+1': 1, | ||
nickName: '@cname()', | ||
userEmail: '@email()', | ||
'status|1': [0, 1], | ||
}, | ||
], | ||
'total|50-1000': 1, | ||
}, | ||
} | ||
}, | ||
}, | ||
] |
Oops, something went wrong.