|
@@ -9,7 +9,7 @@ import $store from '@/sheep/store';
|
|
import $platform from '@/sheep/platform';
|
|
import $platform from '@/sheep/platform';
|
|
import { showAuthModal } from '@/sheep/hooks/useModal';
|
|
import { showAuthModal } from '@/sheep/hooks/useModal';
|
|
import AuthUtil from '@/sheep/api/member/auth';
|
|
import AuthUtil from '@/sheep/api/member/auth';
|
|
-import { getTerminalEnumByUniPlatform } from '@/sheep/util/const';
|
|
|
|
|
|
+import { getTerminal } from '@/sheep/util/const';
|
|
|
|
|
|
const options = {
|
|
const options = {
|
|
// 显示操作成功消息 默认不显示
|
|
// 显示操作成功消息 默认不显示
|
|
@@ -94,9 +94,7 @@ http.interceptors.request.use(
|
|
if (token) {
|
|
if (token) {
|
|
config.header['Authorization'] = token;
|
|
config.header['Authorization'] = token;
|
|
}
|
|
}
|
|
-
|
|
|
|
- const terminalType = uni.getSystemInfoSync().uniPlatform
|
|
|
|
- config.header['terminal'] = getTerminalEnumByUniPlatform(terminalType);
|
|
|
|
|
|
+ config.header['terminal'] = getTerminal();
|
|
|
|
|
|
config.header['Accept'] = '*/*';
|
|
config.header['Accept'] = '*/*';
|
|
config.header['tenant-id'] = tenantId;
|
|
config.header['tenant-id'] = tenantId;
|