摘要:
在src下新建文件夹:router router.js: 1 import App from '../App' 2 import Home from '../page/home/Home.vue' 3 import Login from '../page/login/Login.vue' 4 5 e 阅读全文
摘要:
首先在src下建立store文件夹:目录如下 index.js: 1 import Vue from 'vue' 2 import Vuex from 'vuex' 3 import mutations from './mutations' 4 import actions from './acti 阅读全文