diff --git a/src/lang/modules/enUS.ts b/src/lang/modules/enUS.ts index 9ef2074..2825bc6 100644 --- a/src/lang/modules/enUS.ts +++ b/src/lang/modules/enUS.ts @@ -27,6 +27,7 @@ export default { ["print"]: "print", ["draggable"]: "draggable", ["editor"]: "editor", + ["usre-center"]: "usre center", ["markdown"]: "Markdown", ["custom-instruction"]: "custom instruction", ["anti-shake"]: "anti shake", diff --git a/src/lang/modules/zhCN.ts b/src/lang/modules/zhCN.ts index 2934def..5c31314 100644 --- a/src/lang/modules/zhCN.ts +++ b/src/lang/modules/zhCN.ts @@ -27,6 +27,7 @@ export default { ["print"]: "打印", ["draggable"]: "拖拽", ["editor"]: "富文本", + ["usre-center"]: "用户中心", ["markdown"]: "Markdown", ["custom-instruction"]: "自定义指令", ["anti-shake"]: "防抖", diff --git a/src/router/route.ts b/src/router/route.ts index 314da74..561be31 100644 --- a/src/router/route.ts +++ b/src/router/route.ts @@ -354,6 +354,23 @@ export const dynamicRoutes: RouteRecordRaw[] = [ sort: 4 }, children: [] + }, + { + path: "/common-component/usre-center", + name: "usre-center", + component: () => import("@/views/common-component/usre-center/usre-center.vue"), + meta: { + title: "usre-center", + hide: false, + keepAlive: true, + affix: false, + link: "", + iframe: false, + roles: ["admin"], + icon: "icon-menu", + sort: 5 + }, + children: [] } ] }, diff --git a/src/views/common-component/usre-center/usre-center.vue b/src/views/common-component/usre-center/usre-center.vue new file mode 100644 index 0000000..2cf6c56 --- /dev/null +++ b/src/views/common-component/usre-center/usre-center.vue @@ -0,0 +1,46 @@ + + + + + diff --git a/src/views/custom-instruction/test-instruction/test-instruction.vue b/src/views/custom-instruction/test-instruction/test-instruction.vue index 5302b20..370d8cc 100644 --- a/src/views/custom-instruction/test-instruction/test-instruction.vue +++ b/src/views/custom-instruction/test-instruction/test-instruction.vue @@ -1,8 +1,8 @@ @@ -22,15 +22,15 @@ // const getFun = (e: any) => { // console.log("点击事件", e); // }; -const router = useRouter(); -const jump = () => { - router.push({ - path: "/home", - query: { - name: "张三" - } - }); -}; +// const router = useRouter(); +// const jump = () => { +// router.push({ +// path: "/home", +// query: { +// name: "张三" +// } +// }); +// };