|
@@ -5,6 +5,8 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
+import { isMini } from "@/utils/common";
|
|
|
+
|
|
|
// import { crmQueryMemberInfo } from '@/utils/api-crm-member';
|
|
|
// import Ws from '@/utils/websocket';
|
|
|
import SockJS from '@/utils/sockjs';
|
|
@@ -12,7 +14,7 @@ import Stomp from '@/lib/stompjs/index';
|
|
|
// import uni from '@/utils/uniHooks';
|
|
|
import { Encrypt, Decrypt } from '@/utils/crypto';
|
|
|
import CacheTool from '@/utils/cache-tool';
|
|
|
-
|
|
|
+import uni from '@/utils/uniHooks'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -28,7 +30,15 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
async init() {
|
|
|
+ console.log(33333333)
|
|
|
// 当前页面是否是
|
|
|
+ // const token = uni.getStorageSync('kipAccessToken')
|
|
|
+ // console.log(!isMini() && !token, 35)
|
|
|
+ // if(!isMini() && !token) {
|
|
|
+ // this.$router.push({
|
|
|
+ // path: '/login'
|
|
|
+ // })
|
|
|
+ // }
|
|
|
CacheTool.init()
|
|
|
if (window.location.href.search(/pageId=|token=/g) < 0) {
|
|
|
return;
|