|
@@ -19,10 +19,9 @@ export default (props) => {
|
19
|
19
|
} ${className}`;
|
20
|
20
|
|
21
|
21
|
const currentPage = Taro.getCurrentPages().slice().pop();
|
22
|
|
- const isLoginPage = currentPage.route.includes("pages/login/index");
|
23
|
22
|
|
24
|
23
|
React.useEffect(() => {
|
25
|
|
- // currentPage = Taro.getCurrentPages().slice().pop();
|
|
24
|
+ const isLoginPage = currentPage.route.includes("pages/login/index");
|
26
|
25
|
|
27
|
26
|
if (!user) {
|
28
|
27
|
try {
|
|
@@ -54,7 +53,7 @@ export default (props) => {
|
54
|
53
|
// return;
|
55
|
54
|
// }
|
56
|
55
|
// }
|
57
|
|
- }, [current, user, isLoginPage]);
|
|
56
|
+ }, [current, user]);
|
58
|
57
|
|
59
|
58
|
// React.useEffect(() => {
|
60
|
59
|
// console.log("personRef******************");
|
|
@@ -106,11 +105,7 @@ export default (props) => {
|
106
|
105
|
</Loading>
|
107
|
106
|
</View>
|
108
|
107
|
)} */}
|
109
|
|
- {/* {!isLoginPage ? (
|
110
|
|
- <Auth roles={roles}>{props.children}</Auth>
|
111
|
|
- ) : (
|
112
|
|
- props.children
|
113
|
|
- )} */}
|
|
108
|
+
|
114
|
109
|
<Auth roles={roles}>{props.children}</Auth>
|
115
|
110
|
{!tabBar && <View className={laySty["pdm-space"]}></View>}
|
116
|
111
|
</View>
|