Browse Source

路径不正确,改回集团权限之前的路由

lifanagju_citu 2 tháng trước cách đây
mục cha
commit
86c69ed5c6

+ 5 - 5
src/layout/company/navBar.vue

@@ -76,7 +76,7 @@
           </v-menu> -->
 
           <!-- 消息通知 -->
-          <MessageNotification class="commonHover2" path="/recruit/enterprise/invite/chatTools"></MessageNotification>
+          <MessageNotification class="commonHover2" path="/recruit/enterprise/chatTools"></MessageNotification>
         </div>
       </div>
     </v-toolbar>
@@ -107,7 +107,7 @@ const showBall = ref(false)
 const handleLogoClick = () => { window.open('/recruitHome') } // 点击logo
 
 const enterpriseClick = (tabKey = 1) => {
-  const path = '/recruit/enterprise/systemManagement/entInfoSetting'
+  const path = '/recruit/enterprise/entInfoSetting'
   router.push({ path, query: { tabKey } })
 }
 
@@ -118,7 +118,7 @@ const handleLogout = async (exit = true) => {
 }
 
 const menuList = ref([
-  { title: t('setting.editPassword'), icon: 'mdi-shield-lock-open-outline', key: 'editPassword', change: () => router.push({ path: '/recruit/enterprise/systemManagement/staffChangePassword' }) },
+  { title: t('setting.editPassword'), icon: 'mdi-shield-lock-open-outline', key: 'editPassword', change: () => router.push({ path: '/recruit/enterprise/staffChangePassword' }) },
   { title: t('setting.logOut'), icon: 'mdi-logout', change: handleLogout }
 ])
 const items = computed(() => {
@@ -163,14 +163,14 @@ const hasRoute = (path) => {
   })
 }
 // 没有权限访问时,隐藏菜单
-if (!hasRoute('/recruit/enterprise/systemManagement/staffChangePassword')) {
+if (!hasRoute('/recruit/enterprise/staffChangePassword')) {
   menuList.value.find(e => e.key === 'editPassword').hidden = true
 }
 
 onMounted(() => {
   if (getToken(1)) {
     showBall.value = true
-    localStorage.setItem('showEditPassword', hasRoute('/recruit/enterprise/systemManagement/staffChangePassword'))
+    localStorage.setItem('showEditPassword', hasRoute('/recruit/enterprise/staffChangePassword'))
   }
 })
 

+ 1 - 1
src/views/recruit/enterprise/staffInfoSetting/index.vue

@@ -19,7 +19,7 @@
       </template>
     </CtForm>
     <v-btn class="buttons mt-5" color="primary" @click.stop="handleSubmit">{{ $t('common.save') }}</v-btn>
-    <v-btn v-if="showEditPassword" class="mt-3" color="primary" variant="text" to="/recruit/enterprise/systemManagement/staffChangePassword">修改登录密码</v-btn>
+    <v-btn v-if="showEditPassword" class="mt-3" color="primary" variant="text" to="/recruit/enterprise/staffChangePassword">修改登录密码</v-btn>
   </v-card>
 
   <Loading :visible="overlay"></Loading>