scorpio 2 年 前
コミット
b961ec4b2b
2 ファイル変更28 行追加3 行削除
  1. 10 3
      src/layout/left.vue
  2. 18 0
      src/views/invest/index.vue

+ 10 - 3
src/layout/left.vue

@@ -36,6 +36,11 @@ export default {
           img: new URL('../assets/svg/icon1.svg', import.meta.url).href,
           path: '/'
         },
+        {
+          name: '年度投资管理',
+          img: new URL('../assets/svg/icon1.svg', import.meta.url).href,
+          path: '/invest'
+        },
         {
           name: '任务列表',
           img: new URL('../assets/svg/icon1.svg', import.meta.url).href,
@@ -72,12 +77,14 @@ export default {
   },
   methods: {
     init () {
-      if (this.currentPage.indexOf('/task') > -1) {
+      if (this.currentPage.indexOf('/invest') > -1) {
         this.active = 1
-      } else if (this.currentPage.indexOf('/database') > -1) {
+      } else if (this.currentPage.indexOf('/task') > -1) {
         this.active = 2
-      } else if (this.currentPage.indexOf('/recycle') > -1) {
+      } else if (this.currentPage.indexOf('/database') > -1) {
         this.active = 3
+      } else if (this.currentPage.indexOf('/recycle') > -1) {
+        this.active = 4
       } else {
         this.active = 0
       }

+ 18 - 0
src/views/invest/index.vue

@@ -0,0 +1,18 @@
+<template>
+  <basic-container class='mt-10'>
+    <el-button>22</el-button>
+  </basic-container>
+</template>
+
+<script>
+import BasicContainer from '@/components/basic-container/main.vue'
+
+export default {
+  name: 'index',
+  components: { BasicContainer }
+}
+</script>
+
+<style scoped>
+
+</style>