![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
hanson_judy
这个作者很懒,什么都没留下…
展开
-
react 项目sass的配置 vue 项目sass的配置
一:react use sass从react-scripts 2.0.0开始就支持直接配置sass了!不用再自己配置webpack了!前提:通过create-react-app脚手架搭建的项目1:安装node-sassnpm install node-sass -D2:安装sass-loader和node-sass依赖npm in...原创 2019-10-17 13:29:01 · 284 阅读 · 0 评论 -
关于vue打包后上传服务器刷新404的问题
一:nginx服务器解决方案,修改 .conf 配置文件 有两种解决方案1: location / { try_files $uri $uri/ @router; index index.html; } location @router { rewrite ^.*$ /index.html last; }2: location / {...原创 2018-08-30 10:52:00 · 15485 阅读 · 0 评论 -
vue-cli解决跨域问题
1:后端解决设置Access-Control-Allow-Origin 为*php: header('Access-Control-Allow-Origin:*');//允许所以域名访问.net : <httpProtocol> <customHeaders> <add name="Access-Co...原创 2018-08-30 14:43:14 · 805 阅读 · 0 评论 -
vue 打包(build)以后直接右击index.html 浏览器打开 空白 的问题之解决办法
1:修改 config->index.js 文件build:{ assetsPublicPath: './'}2:修改vue路由设置的模式:改为 hash模式const router = new VueRouter({ mode: 'hash',})3:重新build...原创 2019-08-06 14:40:42 · 858 阅读 · 0 评论