03 2023 档案

摘要:用了pinia做状态管理,如果代码写的不当,遇到 <KeepAlive>时容易造成Cache被改写的问题 computed: { ...mapWritableState(useGoodsStore, { _listData: 'items', _isListEnd: 'isListEnd', _ma 阅读全文
posted @ 2023-03-30 03:52 zjhgx 阅读(74) 评论(0) 推荐(0) 编辑
摘要:1. 把cheap-quasar改造成ssr后,nginx的配置也需要改 原来的 server { listen 443 ssl; # 1.1版本后这样写 server_name hjdang.com www.hjdang.com; #填写绑定证书的域名i #一级域名统一转到www的二级域名 if 阅读全文
posted @ 2023-03-30 03:27 zjhgx 阅读(110) 评论(0) 推荐(0) 编辑
摘要:1. ssr只发生在首次渲染也就是在浏览器上打入地址或刷新时,浏览器从服务器上下载代码,这时渲染发生在后端,然后把渲染后的html发给浏览器。此后前端发生“hydrate”作用,使应用可以交互。之后前端接管代码,后面发生在页面上的点击和ssr就没关系了,也就是后面的点击都是SPA。想想也是这样,因为 阅读全文
posted @ 2023-03-25 10:51 zjhgx 阅读(161) 评论(0) 推荐(0) 编辑
摘要:在ssr改造时发现往Index.vue传props死活传不了,组件是named-view。 { path: 'list/:page', meta: { isGoodsList: true }, components: { default: () => import('pages/Index.vue' 阅读全文
posted @ 2023-03-23 15:57 zjhgx 阅读(30) 评论(0) 推荐(0) 编辑
摘要:1. 手机打开usb调试模式,打开USB调试,默认USB模式:文件传输,用usb连接手机和电脑 2. 电脑打开chrome,在地址栏输入chrome://inspect/#devices,出现下面界面可以显示设备就说明连接成功 3. 手机微信内点击http://debugxweb.qq.com/?i 阅读全文
posted @ 2023-03-23 07:57 zjhgx 阅读(765) 评论(0) 推荐(0) 编辑
摘要:1.在ssr改造第一个页面加上preFetch之后发现页面没有数据,代码如下 Index.vue import { useGoodsStore } from 'stores/goods';computed: { ...mapWritableState(useGoodsStore, { listDat 阅读全文
posted @ 2023-03-20 01:14 zjhgx 阅读(166) 评论(0) 推荐(0) 编辑
摘要:pip uninstall pyOpenSSL==22.1.0pip install pyopenssl==22.0.0 阅读全文
posted @ 2023-03-03 01:43 zjhgx 阅读(185) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示