处理未登录情况
This commit is contained in:
@@ -1 +1,2 @@
|
||||
export const assetsUrl = (name) => `/static/images/${name}`;
|
||||
export const assetsUrl = (name: string) => `/static/images/${name}`;
|
||||
export const defaultAvatar = 'https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132';
|
||||
|
@@ -42,6 +42,13 @@ export function goPath(path: string) {
|
||||
});
|
||||
}
|
||||
|
||||
export function goLogin() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/common/login/index'
|
||||
}).then(r => {
|
||||
});
|
||||
}
|
||||
|
||||
export function formatTimeWithZeroPad(num: number): string {
|
||||
return num < 10 ? '0' + num : num + '';
|
||||
}
|
||||
|
Reference in New Issue
Block a user