摘要: 1.npm install vue-i18n 2.在main.js入口文件 import i18n from './i18n/i18n'; new Vue({ i18n }) 3.创建国际化文件,中文和英文 import zhLocale from 'element-ui/lib/locale/la 阅读全文
posted @ 2020-06-15 19:33 灏月天染 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 1.安装npm http://nodejs.cn/download/(此情况win7报错) 用以下地址即可 https://nodejs.org/zh-cn/ 2.下载vue,可通过cnpm下载 npm install vue 3.下载npm install -g @vue/cli 4. vue u 阅读全文
posted @ 2020-06-15 13:44 灏月天染 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 解决方法:1、管理员身份运行PowerShell(命令提示符,来源于Linux的命令提示符也叫Shell)2、执行:set-ExecutionPolicy RemoteSigned (签名或运行这些脚本)结束。 阅读全文
posted @ 2020-06-15 10:04 灏月天染 阅读(4212) 评论(0) 推荐(0) 编辑