Sfoglia il codice sorgente

企业账号登录时,缺省进去企业路由,防止用户在地址栏直接输入地址访问其他页面

lifanagju_citu 10 mesi fa
parent
commit
a60421f45c

+ 5 - 0
src/router/modules/enterprise.js

@@ -2,6 +2,11 @@
 import Layout from '@/layout/enterprise.vue'
 
 const enterprise = [
+  {
+    path: '/enterprise', // 企业账号登录时,缺省进去企业路由,防止用户在地址栏直接输入地址访问其他页面(不可改,permission中用到)
+    show: true,
+    redirect: '/recruit/enterprise',
+  },
   {
     path: '/recruit/enterprise',
     show: true,

+ 1 - 1
src/router/modules/remaining.js

@@ -61,7 +61,7 @@ const remainingRouter = [
     path: '/home',
     component: Layout,
     children: [
-      { path: '/personal', redirect: '/home' }, 
+      { path: '/personal', redirect: '/home' }, // 个人账号登录时,缺省只能访问个人账号路由和不需要登录,防止用户在地址栏直接输入地址访问其他页面(不可改,permission中用到)
       {
         path: '/home',
         component: () => import('@/views/recruit/personal/home'),

+ 1 - 1
src/views/recruit/enterprise/memberCenter/myPoints/index.vue

@@ -1,7 +1,7 @@
 <!-- 积分管理 -->
 <template>
   <div class="white-bgc pa-3">
-    <integralShow :showMall="false" :taskCenter="false" :title="descriptiveTitle" :isEnterprise="true"></integralShow>
+    <integralShow :showMall="true" :taskCenter="false" :title="descriptiveTitle" :isEnterprise="true"></integralShow>
     <div>
       <v-tabs v-model="tab" align-tabs="start" color="primary" bg-color="#fff" @update:model-value="getPositionList">
         <v-tab :value="1">{{ $t('points.redemptionOfPoints') }}</v-tab>