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