- 博客(6)
- 收藏
- 关注
原创 带有https得服务器怎么转发ws 开头的websoket
注意点:proxy_pass 中的ws要换成http ,wss要换成https,proxy_set_header Origin和proxy_pass 一致只是不要端口 (例如: http://xxx.xxx.xxx.xxx:9988变成 http://xxx.xxx.xxx.xxx),proxy_set_header Host 只要ip就行(例如http://xxx.xxx.xxx.xxx:9988,就获取:xxx.xxx.xxx.xxx:)但是我由于某种原因不能改用wss,所以做了代理转发。
2025-10-25 19:32:28
364
原创 uniapp+vue3+vite 使用.env .env.production .env.development [ HBuilderX的编译,是没有处理根目录下的.env文件的。 所以手写 ]
uniapp vue3 vite 使用 .env .env.development .env.production
2025-08-08 16:13:46
1665
原创 uniapp vue3 报错 TypeError: Failed to fetch dynamically imported module:
事实上vite 是个服务器 将你的文件放在哪里, 所以你导入import { demo } from '@/api/index 其实是在请求vite 服务器的资源文件,错误的理解它是个API 请求路径,实质它是文件路径导致被拦截,可以在控制台网络("Network) 不要过滤 选全部 就看到这个请求404(大概是这样的,描述的不是很到位,但大致原理是这样)// ‘/api/sanyi’: { // 修改代理前缀,避免与前端路径冲突。// // 本地开发服务器代理(优先级最低)
2025-07-22 23:02:19
793
1
原创 csdn_export_md
解决nuxt(ssr)项目中 出现docment not undefined 及图片回显npm下载npm i vue2-edito1. 在plugins 插件中新建一个js(我这里写的js名为myvue2editor.js),js内配置如下import Vue from 'vue'import Vue2Editor from "vue2-editor";Vue.use(Vue2Editor);**2.**在nuxt.config.js配置中引入 在plugins 插件中新建的一个js(我
2020-10-10 12:13:43
383
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅