@@ -36,7 +36,11 @@ export default {
skip (index) {
this.$router.push(`/layout/holding${index}`).catch(() => {})
// 如果从别的tab栏点击藏品总账,就自动刷新页面获取最新信息
- if (this.ind !== index && index === 3) location.reload(true)
+ this.$nextTick(() => {
+ setTimeout(() => {
+ if (this.ind !== index && index === 3) location.reload(true)
+ }, 100)
+ })
}
@@ -33,7 +33,11 @@ export default {
this.$router.push(`/layout/collect${index}`).catch(() => {})
- if (this.ind !== index && index === 0) location.reload(true)
+ if (this.ind !== index && index === 0) location.reload(true)
@@ -1,8 +1,8 @@
import axios from 'axios'
// export const baseURL = '666初始地址'
const service = axios.create({
- baseURL: 'http://192.168.0.135:8006',
- // baseURL: '',
+ // baseURL: 'http://192.168.0.135:8006',
+ baseURL: '',
timeout: 5000
})