feat: 更新mock数据和用户store逻辑
重构用户模块的异步函数,添加租户和租户计划的mock接口,优化字典表单和请求拦截器的实现。
This commit is contained in:
@@ -472,19 +472,6 @@ export default defineMock([
|
||||
params: null,
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "vxe-table",
|
||||
component: "demo/vxe-table/index",
|
||||
name: "VxeTable",
|
||||
meta: {
|
||||
title: "VxeTable",
|
||||
icon: "el-icon-MagicStick",
|
||||
hidden: false,
|
||||
keepAlive: true,
|
||||
alwaysShow: false,
|
||||
params: null,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "icon-demo",
|
||||
component: "demo/icons",
|
||||
@@ -499,11 +486,24 @@ export default defineMock([
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "/function/ai-command",
|
||||
component: "demo/ai-command",
|
||||
name: "/function/ai-command",
|
||||
path: "dict-sync",
|
||||
component: "demo/dict-sync",
|
||||
name: "DictSync",
|
||||
meta: {
|
||||
title: "AI 命令助手",
|
||||
title: "字典实时同步",
|
||||
icon: "",
|
||||
hidden: false,
|
||||
keepAlive: true,
|
||||
alwaysShow: false,
|
||||
params: null,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "vxe-table",
|
||||
component: "demo/vxe-table/index",
|
||||
name: "VxeTable",
|
||||
meta: {
|
||||
title: "VxeTable",
|
||||
icon: "el-icon-MagicStick",
|
||||
hidden: false,
|
||||
keepAlive: true,
|
||||
@@ -512,13 +512,14 @@ export default defineMock([
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "other/:id",
|
||||
component: "demo/other",
|
||||
name: "Other/:id",
|
||||
path: "curd-single",
|
||||
component: "demo/curd-single",
|
||||
name: "CurdSingle",
|
||||
meta: {
|
||||
title: "敬请期待...",
|
||||
icon: "",
|
||||
title: "CURD单文件",
|
||||
icon: "el-icon-Reading",
|
||||
hidden: false,
|
||||
keepAlive: true,
|
||||
alwaysShow: false,
|
||||
params: null,
|
||||
},
|
||||
@@ -1530,7 +1531,7 @@ export default defineMock([
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 89,
|
||||
id: 7,
|
||||
parentId: 0,
|
||||
name: "功能演示",
|
||||
type: "CATALOG",
|
||||
@@ -1544,8 +1545,8 @@ export default defineMock([
|
||||
perm: null,
|
||||
children: [
|
||||
{
|
||||
id: 97,
|
||||
parentId: 89,
|
||||
id: 801,
|
||||
parentId: 7,
|
||||
name: "Icons",
|
||||
type: "MENU",
|
||||
routeName: null,
|
||||
@@ -1559,20 +1560,50 @@ export default defineMock([
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
id: 91,
|
||||
parentId: 89,
|
||||
name: "敬请期待...",
|
||||
type: "CATALOG",
|
||||
id: 802,
|
||||
parentId: 7,
|
||||
name: "字典实时同步",
|
||||
type: "MENU",
|
||||
routeName: null,
|
||||
routePath: "other/:id",
|
||||
component: "demo/other",
|
||||
sort: 4,
|
||||
routePath: "dict-sync",
|
||||
component: "demo/dict-sync",
|
||||
sort: 3,
|
||||
visible: 1,
|
||||
icon: "",
|
||||
redirect: "",
|
||||
perm: null,
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
id: 803,
|
||||
parentId: 7,
|
||||
name: "VxeTable",
|
||||
type: "MENU",
|
||||
routeName: null,
|
||||
routePath: "vxe-table",
|
||||
component: "demo/vxe-table/index",
|
||||
sort: 4,
|
||||
visible: 1,
|
||||
icon: "el-icon-MagicStick",
|
||||
redirect: "",
|
||||
perm: null,
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
id: 804,
|
||||
parentId: 7,
|
||||
name: "CURD单文件",
|
||||
type: "MENU",
|
||||
routeName: null,
|
||||
routePath: "curd-single",
|
||||
component: "demo/curd-single",
|
||||
sort: 5,
|
||||
visible: 1,
|
||||
icon: "el-icon-Reading",
|
||||
redirect: "",
|
||||
perm: null,
|
||||
children: [],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
@@ -1902,20 +1933,24 @@ export default defineMock([
|
||||
],
|
||||
},
|
||||
{
|
||||
value: "89",
|
||||
value: "7",
|
||||
label: "功能演示",
|
||||
children: [
|
||||
{
|
||||
value: "97",
|
||||
value: "801",
|
||||
label: "Icons",
|
||||
},
|
||||
{
|
||||
value: "90",
|
||||
label: "Websocket",
|
||||
value: "802",
|
||||
label: "字典实时同步",
|
||||
},
|
||||
{
|
||||
value: "91",
|
||||
label: "敬请期待...",
|
||||
value: "803",
|
||||
label: "VxeTable",
|
||||
},
|
||||
{
|
||||
value: "804",
|
||||
label: "CURD单文件",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -2077,4 +2112,89 @@ const menuMap: Record<string, any> = {
|
||||
keepAlive: 1,
|
||||
alwaysShow: null,
|
||||
},
|
||||
7: {
|
||||
id: 7,
|
||||
parentId: 0,
|
||||
name: "功能演示",
|
||||
type: "CATALOG",
|
||||
routeName: "",
|
||||
routePath: "/function",
|
||||
component: "Layout",
|
||||
perm: null,
|
||||
visible: 1,
|
||||
sort: 3,
|
||||
icon: "menu",
|
||||
redirect: "/function/icon-demo",
|
||||
keepAlive: null,
|
||||
alwaysShow: null,
|
||||
params: null,
|
||||
},
|
||||
801: {
|
||||
id: 801,
|
||||
parentId: 7,
|
||||
name: "Icons",
|
||||
type: "MENU",
|
||||
routeName: "IconDemo",
|
||||
routePath: "icon-demo",
|
||||
component: "demo/icons",
|
||||
perm: null,
|
||||
visible: 1,
|
||||
sort: 1,
|
||||
icon: "el-icon-Notification",
|
||||
redirect: null,
|
||||
keepAlive: 1,
|
||||
alwaysShow: null,
|
||||
params: null,
|
||||
},
|
||||
802: {
|
||||
id: 802,
|
||||
parentId: 7,
|
||||
name: "字典实时同步",
|
||||
type: "MENU",
|
||||
routeName: "DictSync",
|
||||
routePath: "dict-sync",
|
||||
component: "demo/dict-sync",
|
||||
perm: null,
|
||||
visible: 1,
|
||||
sort: 2,
|
||||
icon: "",
|
||||
redirect: null,
|
||||
keepAlive: 1,
|
||||
alwaysShow: null,
|
||||
params: null,
|
||||
},
|
||||
803: {
|
||||
id: 803,
|
||||
parentId: 7,
|
||||
name: "VxeTable",
|
||||
type: "MENU",
|
||||
routeName: "VxeTable",
|
||||
routePath: "vxe-table",
|
||||
component: "demo/vxe-table/index",
|
||||
perm: null,
|
||||
visible: 1,
|
||||
sort: 3,
|
||||
icon: "el-icon-MagicStick",
|
||||
redirect: null,
|
||||
keepAlive: 1,
|
||||
alwaysShow: null,
|
||||
params: null,
|
||||
},
|
||||
804: {
|
||||
id: 804,
|
||||
parentId: 7,
|
||||
name: "CURD单文件",
|
||||
type: "MENU",
|
||||
routeName: "CurdSingle",
|
||||
routePath: "curd-single",
|
||||
component: "demo/curd-single",
|
||||
perm: null,
|
||||
visible: 1,
|
||||
sort: 4,
|
||||
icon: "el-icon-Reading",
|
||||
redirect: null,
|
||||
keepAlive: 1,
|
||||
alwaysShow: null,
|
||||
params: null,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user