Commit feb6faee by 孙美琪

解决方案修改

parent ecbd4d10
...@@ -62,7 +62,6 @@ import {computed} from 'vue' ...@@ -62,7 +62,6 @@ import {computed} from 'vue'
import {useRoute, useRouter} from 'vue-router' import {useRoute, useRouter} from 'vue-router'
import AppMain from '@/layout/components/AppMain.vue' import AppMain from '@/layout/components/AppMain.vue'
import {categoryMenuNew} from '@/api/computingResource.js' import {categoryMenuNew} from '@/api/computingResource.js'
import {industryMenu} from '@/api/industry.js'
import useUserStore from '@/store/modules/user.js' import useUserStore from '@/store/modules/user.js'
import {ElMessageBox} from 'element-plus' import {ElMessageBox} from 'element-plus'
...@@ -75,7 +74,7 @@ const activeMenu = computed(() => { ...@@ -75,7 +74,7 @@ const activeMenu = computed(() => {
if (meta.activeMenu) { if (meta.activeMenu) {
return meta.activeMenu return meta.activeMenu
} }
const titleList = ['计算资源', '行业应用'] const titleList = ['计算资源', '行业应用', '解决方案']
return titleList.includes(meta.title) ? fullPath : path return titleList.includes(meta.title) ? fullPath : path
}) })
...@@ -85,25 +84,14 @@ function menuSelect(val, indexPath, item) { ...@@ -85,25 +84,14 @@ function menuSelect(val, indexPath, item) {
const computilityMenuData = ref([]) const computilityMenuData = ref([])
// const industryMenuData = ref([])
function getComputilityMenu() { function getComputilityMenu() {
categoryMenuNew().then(res => { categoryMenuNew().then(res => {
console.log(res, 'res')
computilityMenuData.value = res.data computilityMenuData.value = res.data
}) })
} }
// function getIndustryMenu() {
// industryMenu().then(res => {
// industryMenuData.value = res.data
// })
// }
getComputilityMenu() getComputilityMenu()
// getIndustryMenu()
function handleCommand(command) { function handleCommand(command) {
switch (command) { switch (command) {
case 'setLayout': case 'setLayout':
......
...@@ -13,6 +13,7 @@ const whiteList = [ ...@@ -13,6 +13,7 @@ const whiteList = [
'/register', '/register',
'/index', '/index',
'/computingResource/resourceList', '/computingResource/resourceList',
'/industryApplications/index',
'/industryApplications/detail', '/industryApplications/detail',
'/componentServices/componentServicesList', '/componentServices/componentServicesList',
'/partnership/partnershipList', '/partnership/partnershipList',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment