|
|
@@ -13,6 +13,7 @@ import { base64ToBlob } from "./file";
|
|
|
import { checkLogin } from "@/api";
|
|
|
import { LoginDetector } from "@/utils/starter";
|
|
|
import { $alert, $confirm } from "@/components/shared/message";
|
|
|
+import store from '@/Store'
|
|
|
|
|
|
let vue = new Vue();
|
|
|
|
|
|
@@ -44,7 +45,7 @@ export const statusCode = {
|
|
|
|
|
|
let __showNetworkError = false;
|
|
|
|
|
|
-const showLoginTips = () => {
|
|
|
+export const showLoginTips = () => {
|
|
|
// 防止多次请求弹出
|
|
|
if (showLoginTips.__is_show) {
|
|
|
return;
|
|
|
@@ -65,6 +66,7 @@ const showLoginTips = () => {
|
|
|
no: function() {
|
|
|
checkLogin().then((response) => {
|
|
|
if (response.code === statusCode.SUCCESS) {
|
|
|
+ store.dispatch('refreshUserInfo')
|
|
|
postQueue.length && postQueue.forEach((item) => item());
|
|
|
postQueue = [];
|
|
|
LoginDetector.valid();
|