取消订阅新加条件

This commit is contained in:
X1627315083
2025-11-13 13:19:03 +08:00
parent c85d69bdf0
commit 56c7a222cf
6 changed files with 8 additions and 8 deletions

View File

@@ -6,7 +6,7 @@
<bind v-if="item.key == 'bind' && activeKey == 'bind'" :ref="item.key"></bind>
<cancelRenewal v-if="item.key == 'cancelRenewal' && activeKey == 'cancelRenewal'" :ref="item.key"></cancelRenewal>
<template #tab>
<a-badge :count="0" >
<a-badge :count="0" v-if="!(item.key == 'cancelRenewal' && [5,6,7,8].includes(userDetail.systemUser))">
<span>{{item.title}}</span>
</a-badge>
</template>

View File

@@ -266,7 +266,6 @@ const userHabit : Module<UserHabit,RootState> = {
// data.systemUser = 0
state.userDetail.affiliate = data.affiliate
state.userDetail.systemUser = data.systemUser
// state.userDetail.systemUser = 3
// 身份列表1可以使用aida系统2:可以使用affiliate页面3系统管理员用户
state.userDetail.systemList = []
if(data.systemUser != 0)state.userDetail.systemList.push(1)

View File

@@ -106,6 +106,10 @@ const Workspace: Module<DesignDetail, RootState> = {
model: [] //模特
}
},
createProjectPath(state){
state.projectPath = ''
state.cachedRoutes = []
},
setProjectPath(state, path) {
state.projectPath = path
}

View File

@@ -117,6 +117,7 @@ axios.interceptors.response.use((res) =>{
message.warning('Please login and try again~')
store.commit('createDetail')
store.commit('createProbject')
store.commit('createProjectPath')
setTimeout(()=>[
isLoginTime = false
],2000)

View File

@@ -1232,7 +1232,7 @@ export default defineComponent({
this.$router.replace('/')
this.store.commit('createDetail')
this.store.commit('createProbject')
this.store.commit('createProjectPath')
// WriteCookie("token");
// window.location.reload()
},

View File

@@ -454,11 +454,7 @@ export default defineComponent({
// router.push(`/home?history=${data.id}`)
// if(data.id)
if(data.id === this.store.state.Workspace.probjects.id){
let cachedRoutes = this.store.state.Workspace.cachedRoutes
for (let i = cachedRoutes.length - 1; i >= 0; i--) {
cachedRoutes.splice(i, 1);
}
this.store.commit('setProjectPath','')
this.store.commit('createProjectPath','')
}
// this.getHistoryList()
},