Skip to content

Commit 0d9937f

Browse files
committed
refine doc
1 parent 720d95d commit 0d9937f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

examples/src/comp/app.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ export default {
235235
window.open(newUrl, "_blank");
236236
} else {
237237
const newUrl = protocol + "//" + host + item.value + hash;
238-
alert(newUrl);
239238
window.open(item.value, "_self");
240239
}
241240
},

examples/src/router/router.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ export default [
1010
meta: { keepAlive: true, hide: true },
1111
redirect: "/en",
1212
}, // 默认路由
13+
{
14+
path: "*", // 页面不存在的情况下会跳到首页
15+
redirect: "/",
16+
},
1317
{
1418
path: "/zh",
1519
component: emptyLayout,

0 commit comments

Comments
 (0)