首页
轻听2.0常见问题
轻听APP2.0
关于
Search
1
GO程序打包至Linux服务器运行
1,348 阅读
2
SpringBoot2.7.9+Mybatis-Plus3.5.3.1+ShardingSphere-JDBC5.3.1实现分库分表
781 阅读
3
Xmind 思维脑图软件破解版
730 阅读
4
完美解决方案-雪花算法ID到前端之后精度丢失问题
673 阅读
5
mysql 让清空表且自增的id重新从0开始的命令
603 阅读
Git
Java
SQL
区块链
网站搭建技术
SpringBoot
thymeleaf
Vue
GO
实用软件
登录
Search
canace
累计撰写
23
篇文章
累计收到
0
条评论
首页
栏目
Git
Java
SQL
区块链
网站搭建技术
SpringBoot
thymeleaf
Vue
GO
实用软件
页面
轻听2.0常见问题
轻听APP2.0
关于
搜索到
2
篇与
Vue
的结果
2021-03-03
vue框架下部署上线后刷新报404问题解决方案
nginx配置location / { try_files $uri $uri/ /index.html; }vue history模式下nginx配置在宝塔的网站设置中修改 server { listen 80; server_name testwx.wangshibo.com; root /Data/app/xqsj_wx/dist; index index.html; access_log /var/log/testwx.log main; ## 注意从这里开始 location / { try_files $uri $uri/ @router; index index.html; } location @router { rewrite ^.*$ /index.html last; } }
2021年03月03日
399 阅读
0 评论
0 点赞
2021-02-01
vue单页面标题设置 title
推荐使用vue-wechat-title插件安装npm install vue-wechat-title --save用法1,在 main.js 中引入import VueWechatTitle from 'vue-wechat-title'Vue.use(VueWechatTitle)2,在路由文件 index.js 中给每个路由添加 title// 挂载路由const router = new Router({ mode: 'history', routes:[ { path: '/', name: 'Index', component: Index, meta: { title: '首页' // 标题设置 } }]});3,在 app.vue 中修改 router-view 组件<router-view v-wechat-title='$route.meta.title'></router-view>自定义加载的图片地址 默认是 ./favicon.ico 可以是相对或者绝对的<div v-wechat-title="$route.meta.title" img-set="/static/logo.png"></div>
2021年02月01日
312 阅读
0 评论
0 点赞