22问答网
所有问题
Vue_cli 服务器运行后URL变成http://localhost:8080/#/
Vue_cli 服务器运行后URL变成
http://localhost:8080/#/
,端口号后面的/#/是怎么回事
举报该问题
推荐答案 2020-06-05
在route/index.js文件中找到routes节点,在该节点上面同级定义
mode: 'history',
这样,路由模式就变成了我们所熟悉的/A/B/C这种形式而没有#在中间;
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://22.wendadaohang.com/zd/C66CS060f02XTTIhTSh.html
相似回答
大家正在搜
如何将电脑变成服务器
如何让自己电脑成为服务器
自己的服务器
怎么做服务器
服务器
服务器自己怎么弄
怎么自己做服务器
搭建本地服务器
本地服务器是什么
相关问题
请问如何把项目配置成访问http://localhost:8...
http://localhost:8080/与http://...
服务器接收的请求为:http://localhost:808...
启动tomcat后运行http://localhost:80...
对于tomcat服务器,地址http://localhost...
tomcat启动之后,在浏览器中输入http://local...
tomcat正常启动后,在地址栏中输入http://loca...
安装了tomcat成功后输入http://localhost...