parent
67b89b4574
commit
e6387fe6b7
|
@ -215,21 +215,12 @@
|
||||||
<view slot="label" class="mt-10">
|
<view slot="label" class="mt-10">
|
||||||
<u-upload
|
<u-upload
|
||||||
ref="aaa"
|
ref="aaa"
|
||||||
capture="album"
|
|
||||||
uploadIcon="plus"
|
uploadIcon="plus"
|
||||||
:fileList="fileList"
|
:fileList="fileList"
|
||||||
@afterRead="afterRead"
|
@afterRead="afterRead"
|
||||||
@delete="deletePic"
|
@delete="deletePic"
|
||||||
name="1" multiple
|
name="1" multiple
|
||||||
:maxCount="4"></u-upload>
|
:maxCount="4"></u-upload>
|
||||||
<!-- <u-upload-->
|
|
||||||
<!-- uploadIcon="plus"-->
|
|
||||||
<!-- :fileList="form.fileList"-->
|
|
||||||
<!-- @afterRead="afterRead"-->
|
|
||||||
<!-- @delete="deletePic"-->
|
|
||||||
<!-- multiple-->
|
|
||||||
<!-- :maxCount="4"-->
|
|
||||||
<!-- ></u-upload>-->
|
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell v-if="pd.isChange === '2'">
|
<u-cell v-if="pd.isChange === '2'">
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
// export var requestPath = 'https://skqhdg.porthebei.com:9005/qa-regulatory-gwj/'; // 后台请求地址
|
// export var requestPath = 'https://skqhdg.porthebei.com:9005/qa-regulatory-gwj/'; // 后台请求地址
|
||||||
|
|
||||||
export var requestPath = 'http://192.168.0.102:8060/new_template';
|
export var requestPath = 'http://192.168.0.101:8060/new_template';
|
||||||
|
|
||||||
let videoApiPath = 'https://arqsp.qhdsafety.com:10010'; // 视频平台后台请求地址
|
let videoApiPath = 'https://arqsp.qhdsafety.com:10010'; // 视频平台后台请求地址
|
||||||
import store from '../store/index'
|
import store from '../store/index'
|
||||||
|
@ -31,10 +31,6 @@ function post(url, data) {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
}
|
}
|
||||||
if (res.data.result === 'success') {
|
if (res.data.result === 'success') {
|
||||||
if (dayjs().diff(dayjs(uni.getStorageSync('tokenTime')), "minute") >= 5) {
|
|
||||||
uni.setStorageSync('tokenTime', dayjs().format("YYYY-MM-DD HH:mm:ss"))
|
|
||||||
setRefreshToken();
|
|
||||||
}
|
|
||||||
resolve(res.data)
|
resolve(res.data)
|
||||||
} else {
|
} else {
|
||||||
if(url =='/admin/check'){
|
if(url =='/admin/check'){
|
||||||
|
@ -189,4 +185,12 @@ function videoApiGet(url, data) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setInterval(async () => {
|
||||||
|
if (uni.getStorageSync('tokenTime') == null) return;
|
||||||
|
if (dayjs().diff(dayjs(uni.getStorageSync('tokenTime')), "minute") >= 5) {
|
||||||
|
uni.setStorageSync('tokenTime', dayjs().format("YYYY-MM-DD HH:mm:ss"))
|
||||||
|
await setRefreshToken();
|
||||||
|
}
|
||||||
|
}, 1000 * 60);
|
||||||
|
|
||||||
export {post, upload, uploads,setBasePath,videoApiGet}
|
export {post, upload, uploads,setBasePath,videoApiGet}
|
||||||
|
|
Loading…
Reference in New Issue