This commit is contained in:
gtz217 2022-08-04 15:56:17 +08:00
parent 121145117b
commit 726f28caa3
3 changed files with 7 additions and 4 deletions

View File

@ -2,7 +2,7 @@
* @Author: gtz
* @Date: 2022-07-28 10:22:30
* @LastEditors: gtz
* @LastEditTime: 2022-08-04 15:34:56
* @LastEditTime: 2022-08-04 15:55:57
* @Description: file content
* @FilePath: \hf-pda\src\pages\eqInspection\eqInspection-detail.vue
-->
@ -144,6 +144,7 @@ export default {
const result = await uploadFile(data)
if (result.success) {
this.dataForm.annexUrl = result.data[0].id
this.$toast.success('上传成功')
}
},
//

View File

@ -2,7 +2,7 @@
* @Author: gtz
* @Date: 2022-07-28 10:22:30
* @LastEditors: gtz
* @LastEditTime: 2022-08-04 15:34:51
* @LastEditTime: 2022-08-04 15:55:50
* @Description: file content
* @FilePath: \hf-pda\src\pages\eqInspection\eqInspection-edit.vue
-->
@ -256,6 +256,7 @@ export default {
const result = await uploadFile(data)
if (result.success) {
this.dataForm.annexUrl = result.data[0].id
this.$toast.success('上传成功')
}
},
//

View File

@ -2,7 +2,7 @@
* @Author: gtz
* @Date: 2022-07-25 14:18:00
* @LastEditors: gtz
* @LastEditTime: 2022-08-04 15:53:41
* @LastEditTime: 2022-08-04 15:55:01
* @Description: file content
* @FilePath: \hf-pda\src\util\request.js
*/
@ -21,7 +21,8 @@ service.interceptors.request.use((config) => {
// console.log(store.state)
toast = Toast.loading({
mask: true,
message: '加载中...'
message: '加载中...',
duration: 5000
})
// if (config.url !== '/wms/login/verify' && JSON.parse(sessionStorage.getItem('userInfo')).token) {
// config.headers['token'] = JSON.parse(sessionStorage.getItem('userInfo')).token