Compare commits

..

No commits in common. "7984b7bc65f84d7de297492de7200b4ad58a3e74" and "7298bd33474a2cbaa2617acc444314f489611381" have entirely different histories.

View File

@ -24,7 +24,7 @@
:content="appLink.path" placement="bottom" :show-after="300"> :content="appLink.path" placement="bottom" :show-after="300">
<el-button class="m-b-8px m-r-8px m-l-0px!" <el-button class="m-b-8px m-r-8px m-l-0px!"
:type="appLink.path == activeAppLink.path ? 'primary' : 'default'" :type="isSameLink(appLink.path, activeAppLink.path) ? 'primary' : 'default'"
@click="handleAppLinkSelected(appLink)"> @click="handleAppLinkSelected(appLink)">
{{ appLink.name }} {{ appLink.name }}
</el-button> </el-button>
@ -109,14 +109,9 @@
// APP // APP
const handleAppLinkSelected = (appLink : AppLink) => { const handleAppLinkSelected = (appLink : AppLink) => {
if(!appLink.path.includes('/pages/index/page')){ if (!isSameLink(appLink.path, activeAppLink.value.path)) {
if (!isSameLink(appLink.path, activeAppLink.value.path)) { activeAppLink.value = appLink
activeAppLink.value = appLink console.log(activeAppLink.value,activeAppLink.value.path,"activeAppLink.value")
// console.log(activeAppLink.value,activeAppLink.value.path,"activeAppLink.value")
}
}else{
activeAppLink.value.path = appLink.path
console.log(activeAppLink.value.path,"activeAppLink.value.path")
} }
switch (appLink.type) { switch (appLink.type) {
case APP_LINK_TYPE_ENUM.PRODUCT_CATEGORY_LIST: case APP_LINK_TYPE_ENUM.PRODUCT_CATEGORY_LIST: