ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
编写完成项目后 vue.confing.js文件里 ~~~ publicPath:'./', //上线用修改路径的,这里必须弄不然上线打不开 ~~~ ![](https://img.kancloud.cn/c0/b5/c0b503a5374a023970e9565f24de48c4_1938x1395.png) ~~~ const { defineConfig } = require('@vue/cli-service') module.exports = defineConfig({ lintOnSave:false , //关闭语法检查 publicPath:'./', //上线用修改路径的,这里必须弄不然上线打不开 devServer:{ proxy: { '/index.php': { target: 'http://127.0.0.1', ws: true, changeOrigin: true }, } } }) ~~~ ## 然后控制台执行打包命令 ``` npm run build ``` ![](https://img.kancloud.cn/e4/2c/e42ca91030b0aad1a9822ffc402d343d_585x253.png) 打包好的文件 上传到服务器就行 ## 注意: ## 所有静态资源 图片 CSS文件等 都不要放到public 里,否则打包带不上。 ##