|
|
@@ -8,10 +8,12 @@ export const BASE_URL = 'https://api.xyyxt.net'//接口api
|
|
|
export const BASE_IMG_URL = 'https://file.xyyxt.net/'//图片上传api
|
|
|
export const tenantId = '867735392558919680'
|
|
|
export const myRequest = (options) => {
|
|
|
- uni.showLoading({
|
|
|
- title:'拼命加载中...'
|
|
|
- })
|
|
|
-
|
|
|
+ if(store.state.allowLoading){
|
|
|
+ uni.showLoading({
|
|
|
+ title:'拼命加载中...'
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
return new Promise((resolve, reject) => {
|
|
|
uni.request({
|
|
|
url: BASE_URL + options.url,
|