| 1234567891011121314151617181920212223 |
- import { GetAppStatus } from '../../../service/base';
- /** 判断app状态进行跳转 */
- export const useAppStatus = async () => {
- const app = getApp();
- const { status, content } = await GetAppStatus({
- appId: app.globalData.appId,
- });
- switch (status) {
- case 'maintain':
- uni.reLaunch({
- url: `/pages/st1/business/errorPage/maintain/maintain?content=${content}`,
- });
- break;
- case 'offline':
- uni.reLaunch({
- url: '/pages/st1/business/errorPage/offline/offline',
- });
- break;
- default:
- break;
- }
- };
|