添加统一前缀 test,当地址栏输入 localhost:8000/test/abc与 localhost:8000/abc访问看到的页面是一样的,请问,要如何处理这种情况?
const createRouter = () => new Router({
base: '/test/',
mode: 'history'
routes: routes
});
添加统一前缀 test,当地址栏输入 localhost:8000/test/abc与 localhost:8000/abc访问看到的页面是一样的,请问,要如何处理这种情况?
const createRouter = () => new Router({
base: '/test/',
mode: 'history'
routes: routes
});
5 回答4.9k 阅读✓ 已解决
4 回答3.2k 阅读✓ 已解决
2 回答4.8k 阅读✓ 已解决
4 回答4.4k 阅读✓ 已解决
4 回答1.9k 阅读✓ 已解决
2 回答2.7k 阅读✓ 已解决
2 回答2.6k 阅读✓ 已解决