@@ -50,55 +82,50 @@ export default {
data() {
return {
user: null,
- list: []
+ list: [],
+ keys: []
}
},
mounted() {
+ this.init()
this.fetchMenu()
},
methods: {
+ init() {
+ const tmp = localStorage.getItem('user')
+ if (tmp) {
+ this.user = JSON.parse(tmp)
+ }
+ },
fetchMenu() {
this.$api.sys.menus().then(res => {
if (res.code === 200) {
this.list = res.data
}
+ if (this.list.length > 0) {
+ const path = this.list[0]
+ this.keys[0] = path.id + "@" + path.value
+ }
+
})
},
goPath(res) {
- this.$router.push(res.value)
+ const path = res.split("@")
+ this.keys[0] = res
+ this.$router.push(path[1])
}
}
}
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index d3115dd..2cad789 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -2,7 +2,7 @@
-
👏 欢迎登录工作台
+
👏 欢迎登录植趣工作台
Copyright © 2024-{{ new Date().getFullYear() }}
- 科技有限公司 版权所有
+ 植趣 版权所有
All Rights Reserved.
diff --git a/src/views/system/region/index.vue b/src/views/system/region/index.vue
new file mode 100644
index 0000000..21ab5f7
--- /dev/null
+++ b/src/views/system/region/index.vue
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/system/region/info.vue b/src/views/system/region/info.vue
new file mode 100644
index 0000000..5905c93
--- /dev/null
+++ b/src/views/system/region/info.vue
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
\ No newline at end of file