We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 720d95d commit 0d9937fCopy full SHA for 0d9937f
examples/src/comp/app.vue
@@ -235,7 +235,6 @@ export default {
235
window.open(newUrl, "_blank");
236
} else {
237
const newUrl = protocol + "//" + host + item.value + hash;
238
- alert(newUrl);
239
window.open(item.value, "_self");
240
}
241
},
examples/src/router/router.config.js
@@ -10,6 +10,10 @@ export default [
10
meta: { keepAlive: true, hide: true },
11
redirect: "/en",
12
}, // 默认路由
13
+ {
14
+ path: "*", // 页面不存在的情况下会跳到首页
15
+ redirect: "/",
16
+ },
17
{
18
path: "/zh",
19
component: emptyLayout,
0 commit comments