npm install -g @vue/cli
mac系统需要加sudo
sudo npm install -g @vue/cli
或者使用cnpm安装
sudo cnpm install -g @vue/cli
安装后执行vue -V查看
有返回信息就表示安装成功了
...
4年前 (2021-09-08)
喜欢
html
<div v-for="(val,key,index) in info" :key="index">
值:{{ val }}--键名{{ key }} ---索引{{ i }}
...
4年前 (2021-09-04)
喜欢
<template>
<el-dialog class="dialogs" title="产品(BOLON-BL2020-1.65]选择规格" :visible.sync="show">
...
4年前 (2021-09-04)
喜欢
找到配置文件
location ~* \.(gif|png|jpg|css|js|woff|woff2)$
{
proxy_pass http://127.0.0.1:7000;
proxy_set_header Host $host;
proxy_...
4年前 (2021-09-04)
喜欢
插件可以通过vue官网查看
vue官网
安装插件后开发工具中就可以看到vue菜单了。
在这里可以看到各个模块,以及模块下props data $refs等信息。
...
4年前 (2021-09-03)
喜欢
引入插件
import jQuery from 'jquery'
import '../utils/jquery.leoTextAnimate'
使用
for (var i = 0; i < 14; i++) {
jQuery(...
4年前 (2021-09-03)
喜欢
引用高德地图 在public里html引入js
<script type="text/javascript"
src="https://webapi.amap.com/maps?v=1.4.15&key=y...
4年前 (2021-09-03)
喜欢
这个是由于vue的版本与vue-template-compiler不一致导致的
先更新vue-template-compiler模块
yarn add vue-template-compiler
再输入
yarn upgrade –latest vue-template-com...
4年前 (2021-09-02)
喜欢
npm install https://gitee.com/yelingkong/echarts-faguang.git --save -dev
npm install git://git@gitee.com:yelingkong/echarts-faguang.git --s...
4年前 (2021-09-02)
喜欢
Actions用于处理异步任务
如果通过异步操作变更数据,必须通过 Action,而不能使用Mutation,但是在 Action中还是要通过触发Mutation的方式间接变更数据。
在Actions 中不能直接修改 state中的数据,要通过 mutations修改。
disp...
4年前 (2021-09-02)
喜欢