fix: 修复bug

pull/16/head^2
TianYu 2023-06-08 16:42:20 +08:00
parent 1692521b77
commit ff0c287110
3 changed files with 10 additions and 3 deletions

View File

@ -222,6 +222,7 @@
//
isProperty() {
const is_property = this.$route.query.isProperty || false
console.log('is_property', is_property)
if(parseInt(is_property) === 1){
this.$store.commit("SET_IS_PROPERTY", !!is_property)
}

View File

@ -39,7 +39,9 @@ export function getWeChatOpenId(code) {
// 获取租户信息
export function fetchTenantInfo(id) {
return request.get('tenant/get?id=' + id, {});
return request.get('tenant/get?id=' + id, {}, {
noAuth: true
});
}
/**

View File

@ -12,8 +12,12 @@ const whiteListPage=['pages/users/privacy/index']
function prePage(){
let pages = getCurrentPages();
let prePage = pages[pages.length - 1];
return prePage.route;
if(pages.length > 0){
let prePage = pages[pages.length - 1];
return prePage.route;
} else {
return ''
}
}
export const toLogin = Debounce(_toLogin,800)