在src\router\index.js文件中如何使用Axios
import axios from 'axios'
axios.get(url,data).then(res=>{
})
在src\router\index.js文件中如何调用vuex
import store from '../store'
访问vuex数据源:store.state.userInfo.permission
在src\router\index.js文件中如何使用Axios
import axios from 'axios'
axios.get(url,data).then(res=>{
})
在src\router\index.js文件中如何调用vuex
import store from '../store'
访问vuex数据源:store.state.userInfo.permission