|
@@ -207,6 +207,7 @@
|
|
|
// if (getQueryString("id") !== "tianyunperfect") {
|
|
|
// // location.href = "http://127.0.0.1";
|
|
|
// }
|
|
|
+
|
|
|
let authStr = "bearer eyJhbGciOiJIUzI1NiIsImtpZCI6InYxIiwidHlwIjoiSldUIn0.eyJuYW1lIjoidGlhbnl1bnBlcmZlY3QiLCJpc3MiOiJtZW1vcyIsInN1YiI6IjEiLCJhdWQiOlsidXNlci5hY2Nlc3MtdG9rZW4iXSwiaWF0IjoxNzA5MTc5NTUyfQ.LFxWB4efya1sL7VoJ42xpXxbAip-udT_Kx2OwZ8Y3-E";
|
|
|
let myHeaders = {
|
|
|
'Content-type': 'application/json',
|
|
@@ -255,7 +256,9 @@
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
-
|
|
|
+ if (!checkLogin()) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
// 初始化contentStr,如果本地有缓存
|
|
|
let item = localStorage.getItem('contentStr');
|
|
|
if (item) {
|