Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
electron-vue打包项目访问的后台地址会改变,怎么实现打包后通过修改某个文件,如js文件,json文件,就可以改变程序的后台地址,而不需要重新打包?
最好用域名,这样后台IP变了,重新解析下域名就是了。
通过修改配置文件方式也可以啊,你建一个config.json,然后用fs.readFileSync 读这个配置文件,拿到后台IP地址不就可以了吗?
fs.readFileSync