vue
eigerkl
这个作者很懒,什么都没留下…
展开
-
proxyTable 解决开发环境跨域问题 【VUE】
项目后台何其多,不可能每个都让后台设置,所以呀,前端是要自力更生的。 前端需要通过配置proxyTable来解决跨域问题。首先要找到config->index.js 13行的位置就是proxyTable了 代理一个接口 proxyTable: { '/api': { target: 'http://xxxxxx.com', // 接口的域名 // secure: fa...原创 2019-03-18 17:04:26 · 261 阅读 · 0 评论 -
vue使用UEditor
vue使用UEditor 官网下载 [1.4.3.3 PHP版本] UTF-8版本 https://ueditor.baidu.com/website/download.html 把php版本中的内容添加到 /static/UE/ (php 文件夹 / index.html不添加) main.js 全局引入需要的文件 //引入UEditor需要的文件,顺序很重要 impor...原创 2019-03-18 17:10:32 · 595 阅读 · 0 评论 -
vue-i18n 国际化语言切换
vue-i18n 国际化语言切换 1.安装vue-i8n npm install vue-i18n --save 2.src目录下创建文件夹 i18n —— src | —— i18n |———— langs |—————— cn.js |—————— en.js |—————— index.js |———— i18n.js 3. cn.js import enLocale from 'elem...原创 2019-04-28 14:14:29 · 604 阅读 · 0 评论