|
|
@@ -29,20 +29,20 @@
|
|
|
|
|
|
<script>
|
|
|
export default {
|
|
|
- data() {
|
|
|
+ data () {
|
|
|
return {
|
|
|
active: 0,
|
|
|
subActive: 0,
|
|
|
data: [
|
|
|
{
|
|
|
- name: '项 目 库',
|
|
|
- img: new URL('../assets/svg/icon1.svg', import.meta.url).href,
|
|
|
+ name: '年度投资管理',
|
|
|
+ img: new URL('../assets/svg/icon4.svg', import.meta.url).href,
|
|
|
path: '/'
|
|
|
},
|
|
|
{
|
|
|
- name: '年度投资管理',
|
|
|
- img: new URL('../assets/svg/icon4.svg', import.meta.url).href,
|
|
|
- path: '/invest'
|
|
|
+ name: '项 目 库',
|
|
|
+ img: new URL('../assets/svg/icon1.svg', import.meta.url).href,
|
|
|
+ path: '/home'
|
|
|
},
|
|
|
{
|
|
|
name: '任务列表',
|
|
|
@@ -74,12 +74,12 @@ export default {
|
|
|
currentPage: ''
|
|
|
}
|
|
|
},
|
|
|
- created() {
|
|
|
+ created () {
|
|
|
this.currentPage = window.location.href
|
|
|
this.init()
|
|
|
},
|
|
|
methods: {
|
|
|
- init() {
|
|
|
+ init () {
|
|
|
if (this.currentPage.indexOf('/invest') > -1) {
|
|
|
this.active = 1
|
|
|
} else if (this.currentPage.indexOf('/task') > -1) {
|
|
|
@@ -92,7 +92,7 @@ export default {
|
|
|
this.active = 0
|
|
|
}
|
|
|
},
|
|
|
- navClick(item, index) {
|
|
|
+ navClick (item, index) {
|
|
|
this.active = index
|
|
|
if (item.children && item.children.length > 0) {
|
|
|
this.subActive = 0
|
|
|
@@ -101,7 +101,7 @@ export default {
|
|
|
this.$router.push(item.path)
|
|
|
}
|
|
|
},
|
|
|
- subClick(item, index) {
|
|
|
+ subClick (item, index) {
|
|
|
this.subActive = index
|
|
|
this.$router.push(item.path)
|
|
|
}
|