修复路由bug
This commit is contained in:
parent
effded7ac0
commit
cc827a5c09
@ -9,8 +9,8 @@
|
||||
<!-- #endif -->
|
||||
<view class="my_info flex_a_c">
|
||||
<view class="">
|
||||
<u--image :showLoading="true" :src="myOaInfo.avatar||'../../static/img/public/avatar.png'"
|
||||
width="130.28rpx" height="130.28rpx" shape="circle"></u--image>
|
||||
<u--image :showLoading="true" :src="myOaInfo.avatar||'../../static/img/public/avatar.png'" width="130.28rpx"
|
||||
height="130.28rpx" shape="circle"></u--image>
|
||||
</view>
|
||||
<view v-if="!$store.state.app.token" @click="login" class="mesg_box">
|
||||
<view class="name">
|
||||
@ -49,8 +49,7 @@
|
||||
<view class="backlog" :class="!ApproveList.length>0?'backlog_no_data':''">
|
||||
<view class="head_title flex_a_c_j_sb">
|
||||
<view class="title">公告列表</view>
|
||||
<view class="flex_a_c" @click="navTo('/subpkg/noticeList/noticeList')">更多 <view
|
||||
class="iconfont icon-you">
|
||||
<view class="flex_a_c" @click="navTo('/subpkg/noticeList/noticeList')">更多 <view class="iconfont icon-you">
|
||||
<uni-icons type="forward"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
@ -256,9 +255,9 @@
|
||||
let arr = oaHomeData.filter(item => !item.captain); //过滤掉普通用户专属页面
|
||||
this.oaHomeData = arr;
|
||||
}
|
||||
if(this.$store.state.app.userInfo?.company?.company_type_name=='平台公司'){
|
||||
if (this.$store.state.app.userInfo?.company?.company_type_name == '平台公司') {
|
||||
this.oaHomeData = this.oaHomeData.filter(item => {
|
||||
return item.text=='人员管理'?false:true;
|
||||
return item.text == '人员管理' ? false : true;
|
||||
})
|
||||
}
|
||||
// 判断是否需要显示更多按钮
|
||||
|
@ -7,10 +7,15 @@ const whiteList = ['/','/pages/oaHome/oaHome', '/pages/oaExamine/oaExamine', '/p
|
||||
]
|
||||
|
||||
const hasPermission = (url) => {
|
||||
if (whiteList.indexOf(url) !== -1 || uni.getStorageSync("TOKEN")) {
|
||||
try{
|
||||
if (whiteList.indexOf(url) !== -1 || whiteList.indexOf(url.split('?')[0]) || uni.getStorageSync("TOKEN")) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}catch(e){
|
||||
console.log(e);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
const initRouter = () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user