Skip to content

Commit

Permalink
版本升级到v3:element-plus升级到v2、引入国际化、pinia
Browse files Browse the repository at this point in the history
  • Loading branch information
huzhushan committed Sep 28, 2022
1 parent 4b4b490 commit 7cc3274
Show file tree
Hide file tree
Showing 75 changed files with 3,186 additions and 2,916 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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',
},
}
16 changes: 5 additions & 11 deletions mock/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -51,10 +51,10 @@ export default [
name: 'testEdit',
title: '编辑',
},
{
name: 'testAuth',
title: '权限测试',
},
// {
// name: 'testAuth',
// title: '权限测试',
// },
{
name: 'test-cache',
title: '该页面可缓存',
Expand Down Expand Up @@ -83,12 +83,6 @@ export default [
},
]

if (query.role === 'admin')
childs.push({
name: 'testNoAuth',
title: '权限页面',
})

return {
code: 200,
message: '获取菜单成功',
Expand Down
26 changes: 25 additions & 1 deletion mock/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
},
}
},
},
]
Loading

0 comments on commit 7cc3274

Please sign in to comment.