fix: bug#19121
This commit is contained in:
parent
8e5d797a40
commit
4ce90a88b5
|
@ -71,8 +71,8 @@ export const isNoCommunity = !(localStorage.getItem(SystemConst.VERSION_CODE) ==
|
|||
|
||||
/**
|
||||
* 生成随机数
|
||||
* @param length
|
||||
* @returns
|
||||
* @param length
|
||||
* @returns
|
||||
*/
|
||||
export const randomString = (length?: number) => {
|
||||
const tempLength = length || 32;
|
||||
|
@ -87,8 +87,8 @@ export const randomString = (length?: number) => {
|
|||
|
||||
/**
|
||||
* 时间戳转时分秒文本
|
||||
* @param time
|
||||
* @returns
|
||||
* @param time
|
||||
* @returns
|
||||
*/
|
||||
export const timestampFormat = (time: number) => {
|
||||
let hour = 0;
|
||||
|
@ -182,4 +182,4 @@ export const EventEmitter = {
|
|||
})
|
||||
return this
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -90,6 +90,7 @@ import {
|
|||
} from '@/utils/consts';
|
||||
import { usePermissionStore } from '@/store/permission';
|
||||
import RoleShow from './components/RoleShow/index.vue';
|
||||
import {isNoCommunity} from "@/utils/utils";
|
||||
|
||||
const imageTypes = reactive([
|
||||
'image/jpeg',
|
||||
|
@ -103,7 +104,8 @@ const imageTypes = reactive([
|
|||
const user = useUserInfo();
|
||||
|
||||
type KeyType = 'HomeView' | 'BindThirdAccount' | 'Subscribe' | 'StationMessage';
|
||||
const list: { key: KeyType; title: string }[] = [
|
||||
console.log(isNoCommunity)
|
||||
const list: { key: KeyType; title: string }[] = isNoCommunity ? [
|
||||
{
|
||||
key: 'HomeView',
|
||||
title: '首页视图',
|
||||
|
@ -120,6 +122,19 @@ const list: { key: KeyType; title: string }[] = [
|
|||
key: 'StationMessage',
|
||||
title: '站内信',
|
||||
},
|
||||
] : [
|
||||
{
|
||||
key: 'HomeView',
|
||||
title: '首页视图',
|
||||
},
|
||||
{
|
||||
key: 'Subscribe',
|
||||
title: '我的订阅',
|
||||
},
|
||||
{
|
||||
key: 'StationMessage',
|
||||
title: '站内信',
|
||||
},
|
||||
];
|
||||
|
||||
const tabs = {
|
||||
|
|
Loading…
Reference in New Issue