提交 7d34a723 编写于 作者: DCloud_JSON's avatar DCloud_JSON 提交者: study夏羽

为了更直观理解路由拦截。移除路由拦截器中,默认过滤登陆相关页面拦截的逻辑。确保所有白名单页面均在配置文件router.visitor中体现

上级 3f579656
## 1.1.5(2021-09-01)
为了更直观理解路由拦截。移除路由拦截器中,默认过滤登陆相关页面拦截的逻辑。确保所有白名单页面均在配置文件router.visitor中体现
## 1.1.4(2021-08-31) ## 1.1.4(2021-08-31)
修改错误的文章表`SChema`的读权限表达式 修改错误的文章表`SChema`的读权限表达式
## 1.1.3(2021-08-31) ## 1.1.3(2021-08-31)
......
此差异已折叠。
{ {
"id": "uni-starter", "id": "uni-starter",
"displayName": "uni-starter", "displayName": "uni-starter",
"version": "1.1.4", "version": "1.1.5",
"description": "云端一体应用快速开发基本项目模版", "description": "云端一体应用快速开发基本项目模版",
"keywords": [ "keywords": [
"login", "login",
......
<template> <template>
<view> <view>
<web-view :src="url"></web-view> <web-view v-if="url" :src="url"></web-view>
</view> </view>
</template> </template>
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
export default { export default {
onLoad({url,title}) { onLoad({url,title}) {
if(url.substring(0, 4) != 'http'){ if(url.substring(0, 4) != 'http'){
return uni.showModal({ uni.showModal({
title:"错误", title:"错误",
content: '不是一个有效的网站链接,'+'"'+url+'"', content: '不是一个有效的网站链接,'+'"'+url+'"',
showCancel: false, showCancel: false,
...@@ -17,10 +17,11 @@ ...@@ -17,10 +17,11 @@
uni.navigateBack() uni.navigateBack()
} }
}); });
title = "页面路径错误"
}else{
console.log(url,title);
this.url = url;
} }
console.log(url,title);
this.url = url;
if(title){ if(title){
uni.setNavigationBarTitle({title}); uni.setNavigationBarTitle({title});
} }
......
...@@ -72,11 +72,12 @@ ...@@ -72,11 +72,12 @@
} }
}, },
watch: { watch: {
keyword(keyword, oldValue) { keyword(keyword, oldValue) {
let where = '"article_status" == 1 '
if (keyword) { if (keyword) {
this.where = `/${keyword}/.test(title)`; this.where = where + `/${keyword}/.test(title)`;
} else { } else {
this.where = ''; this.where = where;
} }
} }
}, },
......
...@@ -36,9 +36,11 @@ export default { ...@@ -36,9 +36,11 @@ export default {
"visitor" : [ "visitor" : [
"/",//注意入口页必须直接写 "/" "/",//注意入口页必须直接写 "/"
{"pattern":/^\/pages\/list.*/}, //支持正则表达式 {"pattern":/^\/pages\/list.*/}, //支持正则表达式
{"pattern":/^\/pages\/ucenter\/login-page.*/},
"/pages/common/webview/webview",
"/pages/grid/grid", "/pages/grid/grid",
"/pages/ucenter/ucenter", "/pages/ucenter/ucenter",
"/pages/ucenter/about/about", "/pages/ucenter/guestbook/guestbook",
"/pages/ucenter/guestbook/guestbook" "/pages/ucenter/guestbook/guestbook"
], ],
/* /*
......
{ {
"bsonType": "object", "bsonType": "object",
"permission":{ "permission":{
"read":true,
"update":"doc._id == auth.uid" "update":"doc._id == auth.uid"
}, },
"required": [], "required": [],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册