Commit e50ef16f by liang ce

bug修复

parent b2f96ac6
import axios from 'axios' import axios from 'axios'
import qs from 'qs' import qs from 'qs'
// axios.defaults.baseURL = 'http://192.168.1.106:8300/v1/isv' // 本地荣 // axios.defaults.baseURL = 'http://192.168.1.106:8300/v1/isv' // 本地荣
// axios.defaults.baseURL = 'http://192.168.1.102:8300/v1/isv' // 本地钱 axios.defaults.baseURL = 'http://192.168.1.102:8300/v1/isv' // 本地钱
axios.defaults.baseURL = 'http://139.196.213.18:8300/v1/isv' // beta环境 // axios.defaults.baseURL = 'http://139.196.213.18:8300/v1/isv' // beta环境
let loadingInstance // 创建Loading 的实例 let loadingInstance // 创建Loading 的实例
axios.defaults.headers['Authorization'] = `Bearer ${localStorage.getItem('token')}` // 设置请求头为 Authorization axios.defaults.headers['Authorization'] = `Bearer ${localStorage.getItem('token')}` // 设置请求头为 Authorization
// 配置发送请求前的拦截器可以设置token信息 // 配置发送请求前的拦截器可以设置token信息
......
...@@ -343,6 +343,7 @@ export default { ...@@ -343,6 +343,7 @@ export default {
this.form.resetFields() this.form.resetFields()
this.$message.success(res.data.data.message) this.$message.success(res.data.data.message)
this.spinning = !this.spinning this.spinning = !this.spinning
this.queryAccountList()
} else { } else {
this.spinning = !this.spinning this.spinning = !this.spinning
this.$message.error(res.data.message) this.$message.error(res.data.message)
......
...@@ -37,10 +37,12 @@ export default { ...@@ -37,10 +37,12 @@ export default {
}, },
created () { created () {
this.defaultSelectedKeys = this.$route.name this.defaultSelectedKeys = this.$route.name
this.chooseMenuList = this.$route.name
}, },
watch: { watch: {
$route (to, from) { $route (to, from) {
this.defaultSelectedKeys = to.name this.defaultSelectedKeys = to.name
this.chooseMenuList = to.name
} }
}, },
methods: { methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment