From 9f3438c847001111591d58f7c4438eae84ed2eb6 Mon Sep 17 00:00:00 2001
From: wang_fan_w <2547096351@qq.com>
Date: Sat, 3 Aug 2024 19:51:32 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E8=87=AA=E5=AE=9A=E4=B9=89=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/lang/modules/enUS.ts | 1 +
src/lang/modules/zhCN.ts | 1 +
src/router/route.ts | 17 +++++++
.../usre-center/usre-center.vue | 46 +++++++++++++++++++
.../test-instruction/test-instruction.vue | 22 ++++-----
5 files changed, 76 insertions(+), 11 deletions(-)
create mode 100644 src/views/common-component/usre-center/usre-center.vue
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 @@
+
+
+
+
+
+
+
+
王马Verge
+
素材投稿:2547096351@qq.com
+
+
+
+
+
+
+
+
+
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: "张三"
+// }
+// });
+// };