diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/App.vue b/src/main/resources/static/linfeng-community-uniapp-ky/App.vue
index ab8d2ea..252786b 100644
--- a/src/main/resources/static/linfeng-community-uniapp-ky/App.vue
+++ b/src/main/resources/static/linfeng-community-uniapp-ky/App.vue
@@ -8,6 +8,12 @@
},
onHide: function() {
console.log('App Hide')
+ },
+ onPageNotFound() {
+ // 跳转到 404 页面:
+ uni.redirectTo({
+ url: "pages/error/error"
+ });
}
}
@@ -16,4 +22,4 @@
/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
@import "uview-ui/index.scss";
@import "static/css/iconfont.css";
-
+
\ No newline at end of file
diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/pages.json b/src/main/resources/static/linfeng-community-uniapp-ky/pages.json
index 536c587..7b539f8 100644
--- a/src/main/resources/static/linfeng-community-uniapp-ky/pages.json
+++ b/src/main/resources/static/linfeng-community-uniapp-ky/pages.json
@@ -110,6 +110,15 @@
}
}
+ ,{
+ "path" : "pages/error/error",
+ "style" :
+ {
+ "navigationBarTitleText": "404",
+ "enablePullDownRefresh": false
+ }
+
+ }
],
"globalStyle": {
"navigationBarTextStyle": "black",
diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/pages/error/error.vue b/src/main/resources/static/linfeng-community-uniapp-ky/pages/error/error.vue
new file mode 100644
index 0000000..b4b2043
--- /dev/null
+++ b/src/main/resources/static/linfeng-community-uniapp-ky/pages/error/error.vue
@@ -0,0 +1,70 @@
+
+
+ 页面迷路啦~
+ 请确认访问地址是否有误
+ 返回首页
+ 前往官网
+
+
+
+
\ No newline at end of file