no message

This commit is contained in:
A1300399510 2023-12-21 14:33:06 +08:00
parent 1f5be1a6ed
commit f76a33984e
13 changed files with 144 additions and 99 deletions

View File

@ -1,5 +1,5 @@
{
"date": "2023-12-21T04:28:46.623Z",
"date": "2023-12-21T06:32:54.355Z",
"preset": "node-server",
"framework": {
"name": "nuxt",

View File

@ -1 +1 @@
{"id":"0ce1538f-bd28-4c45-9423-fecb0636203e","timestamp":1703132916732}
{"id":"089ac19e-81ee-4e52-8b6a-7a88d67596df","timestamp":1703140364108}

View File

@ -0,0 +1 @@
{"id":"089ac19e-81ee-4e52-8b6a-7a88d67596df","timestamp":1703140364108,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

View File

@ -1 +0,0 @@
{"id":"0ce1538f-bd28-4c45-9423-fecb0636203e","timestamp":1703132916732,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{_ as i,t as a,v as r,x as n,y as e,z as s,D as l,E as d}from"./entry.d2ba0df1.js";const c=t=>(l("data-v-df79c84d"),t=t(),d(),t),p={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},f=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),h={class:"max-w-520px text-center"},g=["textContent"],m=["textContent"],x={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const o=t;return a({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(u,b)=>(r(),n("div",p,[f,e("div",h,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,g),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,m)])]))}},w=i(x,[["__scopeId","data-v-df79c84d"]]);export{w as default};
import{_ as i,t as a,v as r,x as n,y as e,z as s,D as l,E as d}from"./entry.93ff2560.js";const c=t=>(l("data-v-df79c84d"),t=t(),d(),t),p={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},f=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),h={class:"max-w-520px text-center"},g=["textContent"],m=["textContent"],x={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const o=t;return a({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(u,b)=>(r(),n("div",p,[f,e("div",h,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,g),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,m)])]))}},w=i(x,[["__scopeId","data-v-df79c84d"]]);export{w as default};

View File

@ -159,7 +159,7 @@ const client_manifest = {
"prefetch": true,
"preload": true,
"css": [],
"file": "error-404.6ec8c4a0.js",
"file": "error-404.0b38210b.js",
"imports": [
"node_modules/nuxt/dist/app/entry.js"
],
@ -185,7 +185,7 @@ const client_manifest = {
"prefetch": true,
"preload": true,
"css": [],
"file": "error-500.fb93a49d.js",
"file": "error-500.e466e0bd.js",
"imports": [
"node_modules/nuxt/dist/app/entry.js"
],
@ -240,7 +240,7 @@ const client_manifest = {
"node_modules/@nuxt/ui-templates/dist/templates/error-404.vue",
"node_modules/@nuxt/ui-templates/dist/templates/error-500.vue"
],
"file": "entry.d2ba0df1.js",
"file": "entry.93ff2560.js",
"isEntry": true,
"src": "node_modules/nuxt/dist/app/entry.js",
"_globalCSS": true

View File

@ -1085,13 +1085,15 @@ const _sfc_main$2 = {
headers: {
authorization: "production" !== "production"
// 头部标记 ada
// "7a89997c2ccd8cb5ed8cb20d843dafdd", // 头部标记 ada
}
}).then(function(res) {
var data2 = null;
try {
data2 = typeof res.data == "string" ? JSON.parse(res.data) : res.data;
if (data2["code"] == 401)
isNeedLogin.value = true;
if (data2["code"] == 401) {
goLogin();
}
if (data2["code"] != 200)
handleMsg("error", data2["message"] || "报错了,请重试!!!");
} catch (error) {
@ -1099,7 +1101,7 @@ const _sfc_main$2 = {
resolve(data2);
}).catch((err) => {
if (err.response.status == 401)
isNeedLogin.value = true;
;
resolve(err.response.data);
});
});
@ -1113,13 +1115,15 @@ const _sfc_main$2 = {
headers: {
authorization: "production" !== "production"
// 头部标记
// "7a89997c2ccd8cb5ed8cb20d843dafdd", // 头部标记
}
}).then(function(res) {
var data2 = null;
try {
data2 = typeof res.data == "string" ? JSON.parse(res.data) : res.data;
if (data2["code"] == 401)
isNeedLogin.value = true;
if (data2["code"] == 401) {
goLogin();
}
if (data2["code"] != 200)
handleMsg("error", data2["message"] || "报错了,请重试!!!");
} catch (error) {
@ -1127,12 +1131,15 @@ const _sfc_main$2 = {
resolve(data2);
}).catch((err) => {
if (err.response.status == 401)
isNeedLogin.value = true;
;
resolve(err.response.data);
});
});
};
let isNeedLogin = ref(true);
const goLogin = () => {
return;
};
const route = useRoute();
let detailsInfoDataVuex = useState("detailsInfoData", () => {
});

View File

@ -1,8 +1,8 @@
const interopDefault = r => r.default || r || [];
const styles = {
"node_modules/nuxt/dist/app/entry.js": () => import('./static/entry-styles.e03f77a9.mjs').then(interopDefault),
"node_modules/@nuxt/ui-templates/dist/templates/error-404.vue": () => import('./static/error-404-styles.1e0dde27.mjs').then(interopDefault),
"node_modules/@nuxt/ui-templates/dist/templates/error-500.vue": () => import('./static/error-500-styles.cf4b3e80.mjs').then(interopDefault)
"node_modules/@nuxt/ui-templates/dist/templates/error-500.vue": () => import('./static/error-500-styles.cf4b3e80.mjs').then(interopDefault),
"node_modules/@nuxt/ui-templates/dist/templates/error-404.vue": () => import('./static/error-404-styles.1e0dde27.mjs').then(interopDefault)
};
export { styles as default };

View File

@ -3059,7 +3059,7 @@ function klona(x) {
const inlineAppConfig = {
"nuxt": {
"buildId": "0ce1538f-bd28-4c45-9423-fecb0636203e"
"buildId": "089ac19e-81ee-4e52-8b6a-7a88d67596df"
}
};
@ -4949,205 +4949,205 @@ const assets = {
"/static/add-icon.0b0b5313.svg": {
"type": "image/svg+xml",
"etag": "\"d67-gajxuGcy6aHIeWAbO0RazX03p90\"",
"mtime": "2023-12-21T04:28:40.173Z",
"mtime": "2023-12-21T06:32:47.958Z",
"size": 3431,
"path": "../public/static/add-icon.0b0b5313.svg"
},
"/static/arrows-icon.271dd0d3.svg": {
"type": "image/svg+xml",
"etag": "\"5a0-yAit7q5lcKJMd35iOMMifZv2uno\"",
"mtime": "2023-12-21T04:28:40.173Z",
"mtime": "2023-12-21T06:32:47.958Z",
"size": 1440,
"path": "../public/static/arrows-icon.271dd0d3.svg"
},
"/static/close-icon.86743366.svg": {
"type": "image/svg+xml",
"etag": "\"2d4-QYrulZl33jopLCT37UdJfnzXOVg\"",
"mtime": "2023-12-21T04:28:40.173Z",
"mtime": "2023-12-21T06:32:47.958Z",
"size": 724,
"path": "../public/static/close-icon.86743366.svg"
},
"/static/collect-icon-colours.6d2ade7f.svg": {
"type": "image/svg+xml",
"etag": "\"7ab-av9D1DgxgD5cvY5wd30haD7c1q0\"",
"mtime": "2023-12-21T04:28:40.174Z",
"mtime": "2023-12-21T06:32:47.958Z",
"size": 1963,
"path": "../public/static/collect-icon-colours.6d2ade7f.svg"
},
"/static/comment-icon-gray.2c8779f9.svg": {
"type": "image/svg+xml",
"etag": "\"816-HEGvNjvS0TeA/3uJweilvZfCqlk\"",
"mtime": "2023-12-21T04:28:40.173Z",
"mtime": "2023-12-21T06:32:47.958Z",
"size": 2070,
"path": "../public/static/comment-icon-gray.2c8779f9.svg"
},
"/static/delete-icon.4d386dce.svg": {
"type": "image/svg+xml",
"etag": "\"17fe-RGKa0+MaUqOqlbPlXlig67fGkaY\"",
"mtime": "2023-12-21T04:28:40.174Z",
"mtime": "2023-12-21T06:32:47.958Z",
"size": 6142,
"path": "../public/static/delete-icon.4d386dce.svg"
},
"/static/dot-gray.86cdd7b5.svg": {
"type": "image/svg+xml",
"etag": "\"2af-sBMsuPZbsh28jzlFWO9lVYMVDk8\"",
"mtime": "2023-12-21T04:28:40.173Z",
"mtime": "2023-12-21T06:32:47.958Z",
"size": 687,
"path": "../public/static/dot-gray.86cdd7b5.svg"
},
"/static/dot-yellow.4b5e135b.svg": {
"type": "image/svg+xml",
"etag": "\"2af-6L7YsWhGTHBB6NqQztB/l2OFRfE\"",
"mtime": "2023-12-21T04:28:40.173Z",
"mtime": "2023-12-21T06:32:47.958Z",
"size": 687,
"path": "../public/static/dot-yellow.4b5e135b.svg"
},
"/static/dot.1026a040.svg": {
"type": "image/svg+xml",
"etag": "\"217-dx6xqUT4D9pCoKc6nr20aXeJQXQ\"",
"mtime": "2023-12-21T04:28:40.173Z",
"mtime": "2023-12-21T06:32:47.958Z",
"size": 535,
"path": "../public/static/dot.1026a040.svg"
},
"/static/edit-icon-white.29b27582.svg": {
"type": "image/svg+xml",
"etag": "\"8be-EnEF3CQI46JkMNAXbPf3H6T7pzU\"",
"mtime": "2023-12-21T04:28:40.173Z",
"mtime": "2023-12-21T06:32:47.958Z",
"size": 2238,
"path": "../public/static/edit-icon-white.29b27582.svg"
},
"/static/empty-icon.24a01ae2.svg": {
"type": "image/svg+xml",
"etag": "\"d028-Our2UxxUiciRSduORd8JZCt5Prw\"",
"mtime": "2023-12-21T04:28:40.173Z",
"mtime": "2023-12-21T06:32:47.958Z",
"size": 53288,
"path": "../public/static/empty-icon.24a01ae2.svg"
},
"/static/entry.3714ddae.css": {
"type": "text/css; charset=utf-8",
"etag": "\"b2ba-BwEkbxO3UqHXJE5hynAxCwyj4TY\"",
"mtime": "2023-12-21T04:28:40.175Z",
"mtime": "2023-12-21T06:32:47.960Z",
"size": 45754,
"path": "../public/static/entry.3714ddae.css"
},
"/static/entry.d2ba0df1.js": {
"/static/entry.93ff2560.js": {
"type": "application/javascript",
"etag": "\"3c6a6-zGDwsgHtukiOc5fEUvy8Vy0a3wg\"",
"mtime": "2023-12-21T04:28:40.175Z",
"size": 247462,
"path": "../public/static/entry.d2ba0df1.js"
"etag": "\"3c6e8-VNgxfJwErd1u3nD6vIZGwerdPeE\"",
"mtime": "2023-12-21T06:32:47.960Z",
"size": 247528,
"path": "../public/static/entry.93ff2560.js"
},
"/static/error-404.6ec8c4a0.js": {
"/static/error-404.0b38210b.js": {
"type": "application/javascript",
"etag": "\"18de-QXF9XEVShkprzQbkfF6E6+MyP6U\"",
"mtime": "2023-12-21T04:28:40.175Z",
"etag": "\"18de-pUhGhBIoMRltzGyT9lCiSov8s2g\"",
"mtime": "2023-12-21T06:32:47.960Z",
"size": 6366,
"path": "../public/static/error-404.6ec8c4a0.js"
"path": "../public/static/error-404.0b38210b.js"
},
"/static/error-404.7fc72018.css": {
"type": "text/css; charset=utf-8",
"etag": "\"e2e-iNt1cqPQ0WDudfCTZVQd31BeRGs\"",
"mtime": "2023-12-21T04:28:40.175Z",
"mtime": "2023-12-21T06:32:47.960Z",
"size": 3630,
"path": "../public/static/error-404.7fc72018.css"
},
"/static/error-500.c5df6088.css": {
"type": "text/css; charset=utf-8",
"etag": "\"79e-ByRo+49BgcevWdRjJy3CMx2IA5k\"",
"mtime": "2023-12-21T04:28:40.175Z",
"mtime": "2023-12-21T06:32:47.960Z",
"size": 1950,
"path": "../public/static/error-500.c5df6088.css"
},
"/static/error-500.fb93a49d.js": {
"/static/error-500.e466e0bd.js": {
"type": "application/javascript",
"etag": "\"756-mOQervqnCE+K8OHc2YHjQGHS07s\"",
"mtime": "2023-12-21T04:28:40.175Z",
"etag": "\"756-rWmcz7q6gCzCB3Kh9q2B1AvVEAw\"",
"mtime": "2023-12-21T06:32:47.960Z",
"size": 1878,
"path": "../public/static/error-500.fb93a49d.js"
"path": "../public/static/error-500.e466e0bd.js"
},
"/static/issue-bj.44adad8c.svg": {
"type": "image/svg+xml",
"etag": "\"926-lK6rrraYIC+9Yxyy0subzOK8XpE\"",
"mtime": "2023-12-21T04:28:40.174Z",
"mtime": "2023-12-21T06:32:47.958Z",
"size": 2342,
"path": "../public/static/issue-bj.44adad8c.svg"
},
"/static/logo.6622f82d.png": {
"type": "image/png",
"etag": "\"843f-FSXGFGigIHmtzjdcQzuMz/a7E+o\"",
"mtime": "2023-12-21T04:28:40.171Z",
"mtime": "2023-12-21T06:32:47.956Z",
"size": 33855,
"path": "../public/static/logo.6622f82d.png"
},
"/static/menu-icon-gray.d61f02b1.svg": {
"type": "image/svg+xml",
"etag": "\"6de-kmXhltPHfF4W1gmV7wT4aZCZ6gg\"",
"mtime": "2023-12-21T04:28:40.174Z",
"mtime": "2023-12-21T06:32:47.958Z",
"size": 1758,
"path": "../public/static/menu-icon-gray.d61f02b1.svg"
},
"/static/QRCode-icon.a105d5fc.svg": {
"type": "image/svg+xml",
"etag": "\"9c1-qGg9jZ5wmHJGzh2A00nHIGWHMh4\"",
"mtime": "2023-12-21T04:28:40.174Z",
"mtime": "2023-12-21T06:32:47.958Z",
"size": 2497,
"path": "../public/static/QRCode-icon.a105d5fc.svg"
},
"/static/tick-no.179037b3.svg": {
"type": "image/svg+xml",
"etag": "\"1ea-YISAWqJD56jxoQT8N812fDJfkMw\"",
"mtime": "2023-12-21T04:28:40.173Z",
"mtime": "2023-12-21T06:32:47.958Z",
"size": 490,
"path": "../public/static/tick-no.179037b3.svg"
},
"/static/tick-option.e092d22f.svg": {
"type": "image/svg+xml",
"etag": "\"29a-UVjuq3WHs6mhu1KGQ7gQmJH2Bc4\"",
"mtime": "2023-12-21T04:28:40.173Z",
"mtime": "2023-12-21T06:32:47.958Z",
"size": 666,
"path": "../public/static/tick-option.e092d22f.svg"
},
"/static/tick-orange.233abc69.svg": {
"type": "image/svg+xml",
"etag": "\"60a-VrP9K+TQp6JbNcrU5k1Dor/Kq/E\"",
"mtime": "2023-12-21T04:28:40.174Z",
"mtime": "2023-12-21T06:32:47.958Z",
"size": 1546,
"path": "../public/static/tick-orange.233abc69.svg"
},
"/static/title.98892974.png": {
"type": "image/png",
"etag": "\"1723-0OwkVass/2nFB99dRT4w0sPUvI0\"",
"mtime": "2023-12-21T04:28:40.173Z",
"mtime": "2023-12-21T06:32:47.958Z",
"size": 5923,
"path": "../public/static/title.98892974.png"
},
"/static/triangle-icon.c39ff2e7.svg": {
"type": "image/svg+xml",
"etag": "\"446-ylQ81DOJ3joSbsS9atyrW6pZsBY\"",
"mtime": "2023-12-21T04:28:40.174Z",
"mtime": "2023-12-21T06:32:47.959Z",
"size": 1094,
"path": "../public/static/triangle-icon.c39ff2e7.svg"
},
"/static/view-icon.da7fef35.svg": {
"type": "image/svg+xml",
"etag": "\"f39-5Jwx14wB0jgB0Du25KRZbkEEXvI\"",
"mtime": "2023-12-21T04:28:40.173Z",
"mtime": "2023-12-21T06:32:47.958Z",
"size": 3897,
"path": "../public/static/view-icon.da7fef35.svg"
},
"/static/builds/latest.json": {
"type": "application/json",
"etag": "\"47-5HtxTAXa0Z7NhD8a2wfsvyxW0ZU\"",
"mtime": "2023-12-21T04:28:41.529Z",
"etag": "\"47-eGoHdipBw7lIfskcYGwuZXyI19E\"",
"mtime": "2023-12-21T06:32:49.360Z",
"size": 71,
"path": "../public/static/builds/latest.json"
},
"/static/builds/meta/0ce1538f-bd28-4c45-9423-fecb0636203e.json": {
"/static/builds/meta/089ac19e-81ee-4e52-8b6a-7a88d67596df.json": {
"type": "application/json",
"etag": "\"8b-ZYg66JyTZ2hGE/2yh39NmyIRDbM\"",
"mtime": "2023-12-21T04:28:41.530Z",
"etag": "\"8b-l0Lzl+kyYWZAzjK0jq0kuOAmyxU\"",
"mtime": "2023-12-21T06:32:49.361Z",
"size": 139,
"path": "../public/static/builds/meta/0ce1538f-bd28-4c45-9423-fecb0636203e.json"
"path": "../public/static/builds/meta/089ac19e-81ee-4e52-8b6a-7a88d67596df.json"
}
};

102
app.vue
View File

@ -769,6 +769,17 @@
</template>
<script>
// let userInfoWin = {
// "username": "",
// "uid": 256624,
// "uin": 4171117,
// "avatar": "https://oss.gter.net/avatar/97KwEWQHYuMQGDnFqkimXF9SHKuGwVV5zW-tYWFjYQ~~?istype=1&random=nDW5aKmb89WC",
// "messagenum": 0,
// "newprompt": 0,
// "todaysigned": 0
// }
import { onMounted, onUnmounted, ref, nextTick, watchEffect, watch } from "vue";
import axios from "axios";
@ -786,21 +797,27 @@ export default {
headers: {
authorization:
process.env.NODE_ENV !== "production" &&
"7a89997c2ccd8cb5ed8cb20d843dafdd", // ada
"pa5o1v493ed5mahrcio66267e2", // ada
// "7a89997c2ccd8cb5ed8cb20d843dafdd", // ada
},
})
.then(function (res) {
}).then(function (res) {
var data = null;
try {
data = typeof res.data == "string" ? JSON.parse(res.data) : res.data;
if (data["code"] == 401) isNeedLogin.value = true;
if (data["code"] == 401) {
goLogin()
// isNeedLogin.value = true;
}
if (data["code"] != 200) handleMsg("error", data["message"] || "报错了,请重试!!!");
} catch (error) { }
resolve(data);
})
.catch((err) => {
if (err.response.status == 401) isNeedLogin.value = true;
if (err.response.status == 401) {
goLogin()
// isNeedLogin.value = true;
}
resolve(err.response.data);
});
});
@ -809,31 +826,35 @@ export default {
const $ajaxGET = (url, data) => {
url = url.indexOf("//") > -1 ? url : baseURL + url;
return new Promise(function (resolve, reject) {
axios
.get(url, data, {
emulateJSON: true,
withCredentials: true,
headers: {
authorization:
process.env.NODE_ENV !== "production" &&
"7a89997c2ccd8cb5ed8cb20d843dafdd", //
},
})
.then(function (res) {
var data = null;
try {
data = typeof res.data == "string" ? JSON.parse(res.data) : res.data;
if (data["code"] == 401) isNeedLogin.value = true;
axios.get(url, data, {
emulateJSON: true,
withCredentials: true,
headers: {
authorization:
process.env.NODE_ENV !== "production" &&
"pa5o1v493ed5mahrcio66267e2", //
// "7a89997c2ccd8cb5ed8cb20d843dafdd", //
},
}).then(function (res) {
var data = null;
try {
data = typeof res.data == "string" ? JSON.parse(res.data) : res.data;
if (data["code"] == 401) {
goLogin()
// isNeedLogin.value = true;
}
if (data["code"] != 200)
handleMsg("error", data["message"] || "报错了,请重试!!!");
} catch (error) { }
resolve(data);
})
.catch((err) => {
if (err.response.status == 401) isNeedLogin.value = true;
resolve(err.response.data);
});
if (data["code"] != 200)
handleMsg("error", data["message"] || "报错了,请重试!!!");
} catch (error) { }
resolve(data);
}).catch((err) => {
if (err.response.status == 401) {
goLogin()
// isNeedLogin.value = true;
}
resolve(err.response.data);
});
});
};
@ -856,11 +877,25 @@ export default {
let type = ref("list"); // list details
onMounted(() => {
// setTimeout(() => {
// window["userInfoWin"] = {
// "username": "",
// "uid": 256624,
// "uin": 4171117,
// "avatar": "https://oss.gter.net/avatar/97KwEWQHYuMQGDnFqkimXF9SHKuGwVV5zW-tYWFjYQ~~?istype=1&random=nDW5aKmb89WC",
// "messagenum": 0,
// "newprompt": 0,
// "todaysigned": 0
// }
// }, 400);
//
// if (process.env.NODE_ENV !== "production") isNeedLogin.value = false;
// else
//
determineIsLogin();
getListClass();
window.addEventListener("scroll", handleScroll);
getHistoricalSearchList();
@ -878,7 +913,7 @@ export default {
const params = route.query;
//
if (params['ispublish']) questionsInit()
setTimeout(() => { if (params['ispublish']) questionsInit() }, 500);
});
@ -937,12 +972,13 @@ export default {
const determineIsLogin = () => {
let count = 0;
let timer = setInterval(() => {
console.log(Object.keys(window["userInfoWin"]).length);
if (Object.keys(window["userInfoWin"]).length !== 0) {
clearInterval(timer);
if (window["userInfoWin"]["uid"]) isNeedLogin.value = false;
}
count++;
if (count >= 20) clearInterval(timer);
if (count >= 10) clearInterval(timer);
}, 100);
};
@ -1920,6 +1956,8 @@ export default {
return;
}
deleteState(['ispublish'])
$ajax("/api/publish/questions").then((res) => {
if (res.code != 200) return;
let data = res.data;