|
|
@@ -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
|
|
|
}
|