摘要:
VUEX 1、安装 cnpm install vuex--save 2、导入,src下新建一个文件夹vuex,文件夹下新建一个store.js import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex); 3、state 相当于vue项目的 阅读全文
posted @ 2021-06-11 21:07
ju-ruo
阅读(61)
评论(0)
推荐(1)
摘要:
1、element UI的使用: 找方法:http://element.eleme.io/#/zh-CN/component/quickstart 2、安装 cnpm i element-ui -S -S表示 --save 3、在main.js中引入element UI的css和插件 import 阅读全文
posted @ 2021-06-11 20:27
ju-ruo
阅读(173)
评论(0)
推荐(0)
摘要:
1、 <router-link to="/home">首页</router-link> 2、 this.$router.push({path:'/content/495'}); this.$router.push({name:'news',params:{userId:123}}) 3、命名式路由 阅读全文
posted @ 2021-06-11 19:58
ju-ruo
阅读(133)
评论(0)
推荐(0)

浙公网安备 33010602011771号