| | |
| | | import { ElMessage } from 'element-plus'; |
| | | import { showNotify } from 'vant'; |
| | | import { EComponentName, ELocalStorageKey, EPhotoType, ERouterName } from '../types' |
| | | import { CURRENT_CONFIG } from './http/config' |
| | | import { EVideoPublishType, LiveStreamStatus } from '@/types/live-stream' |
| | |
| | | |
| | | function errorHint (response: JsResponse): boolean { |
| | | if (response.code !== 0) { |
| | | ElMessage.error(response.message) |
| | | console.error(response.message) |
| | | showNotify({ type: 'warning', message: response.message }) |
| | | return false |
| | | } |
| | | return true |