vue
阿闰
喜欢探索新的技术
展开
-
vue使用代理访问跨域资源
module.exports = { baseUrl: './', assetsDir: 'static', productionSourceMap: false, devServer: { proxy: { '/api':{ target:'https://www.aabb.com/', changeOrigin:true, path..原创 2021-03-20 14:50:27 · 285 阅读 · 0 评论 -
vue打包build后资源文件变file:///
在项目根目录下 建立vue.config.js module.exports = { // 基本路径 baseURL已经过时 publicPath: './', // 输出文件目录 outputDir: 'dist', // eslint-loader 是否在保存的时候检查 lintOnSave: true, // use the full build with in-browser compiler? // https://vuejs.org/v2/guide/.原创 2021-02-19 18:18:51 · 1552 阅读 · 0 评论 -
VScode格式化HTML代码保持标签属性不换行
参考谢谢:https://www.cnblogs.com/listen9436/p/13064294.htmlVScode格式化HTML代码保持标签属性不换行属性自动换行,导致一个文件千百行 ,看着不舒服,最关键的是标签无法折叠了,这是最不能忍的代码:{"vetur.format.defaultFormatter.html": "js-beautify-html", "emmet.includeLanguages": { "wxml"...原创 2021-01-08 12:36:51 · 2172 阅读 · 0 评论 -
nginx部署vue代码问题出404
当vue的路由 去掉了# (浏览器没有#) mode:'history',//去掉url中的# 浏览器没有#,刷新页面就会404,要加 try_files $uri $uri/ /index.html; location / { index index.html; try_files $uri $uri/ /index.html; }import Vue from 'vue'import ...原创 2020-07-09 10:58:37 · 173 阅读 · 0 评论 -
vue自定义权限
//公共的js<script type="text/javascript">import Vue from "vue";import axios from "axios";import config from "@/script/apiConfig";import ajaxLogin from "@/script/api/login.js";import app from...原创 2019-06-27 13:28:50 · 310 阅读 · 0 评论