mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-06 04:00:06 +08:00
feat: add vuex support
This commit is contained in:
parent
74f9727340
commit
2543b358fb
@ -21,7 +21,8 @@
|
|||||||
"viser-vue": "^2.2.5",
|
"viser-vue": "^2.2.5",
|
||||||
"vue": "^2.5.2",
|
"vue": "^2.5.2",
|
||||||
"vue-antd-ui": "^1.0.1",
|
"vue-antd-ui": "^1.0.1",
|
||||||
"vue-router": "^3.0.1"
|
"vue-router": "^3.0.1",
|
||||||
|
"vuex": "^3.0.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"autoprefixer": "^7.1.2",
|
"autoprefixer": "^7.1.2",
|
||||||
|
@ -8,11 +8,13 @@ import Viser from 'viser-vue'
|
|||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
import message from 'vue-antd-ui/es/message'
|
import message from 'vue-antd-ui/es/message'
|
||||||
import '@/mock'
|
import '@/mock'
|
||||||
|
import Vuex from 'vuex'
|
||||||
|
|
||||||
Vue.prototype.$axios = axios
|
Vue.prototype.$axios = axios
|
||||||
Vue.prototype.$message = message
|
Vue.prototype.$message = message
|
||||||
Vue.config.productionTip = false
|
Vue.config.productionTip = false
|
||||||
Vue.use(Viser)
|
Vue.use(Viser)
|
||||||
|
Vue.use(Vuex)
|
||||||
|
|
||||||
/* eslint-disable no-new */
|
/* eslint-disable no-new */
|
||||||
new Vue({
|
new Vue({
|
||||||
|
@ -8139,6 +8139,10 @@ vue@^2.5.2, vue@^2.5.3:
|
|||||||
version "2.5.16"
|
version "2.5.16"
|
||||||
resolved "http://registry.npm.taobao.org/vue/download/vue-2.5.16.tgz#07edb75e8412aaeed871ebafa99f4672584a0085"
|
resolved "http://registry.npm.taobao.org/vue/download/vue-2.5.16.tgz#07edb75e8412aaeed871ebafa99f4672584a0085"
|
||||||
|
|
||||||
|
vuex@^3.0.1:
|
||||||
|
version "3.0.1"
|
||||||
|
resolved "http://registry.npm.taobao.org/vuex/download/vuex-3.0.1.tgz#e761352ebe0af537d4bb755a9b9dc4be3df7efd2"
|
||||||
|
|
||||||
w3c-hr-time@^1.0.1:
|
w3c-hr-time@^1.0.1:
|
||||||
version "1.0.1"
|
version "1.0.1"
|
||||||
resolved "http://registry.npm.taobao.org/w3c-hr-time/download/w3c-hr-time-1.0.1.tgz#82ac2bff63d950ea9e3189a58a65625fedf19045"
|
resolved "http://registry.npm.taobao.org/w3c-hr-time/download/w3c-hr-time-1.0.1.tgz#82ac2bff63d950ea9e3189a58a65625fedf19045"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user