fix(用户认证): 更新实名认证状态默认值为1并优化用户信息获取逻辑
修复实名认证状态默认值为0的问题,改为1以匹配业务需求 优化用户信息获取逻辑,使用事件监听替代轮询方式 更新相关构建文件和静态资源版本
This commit is contained in:
parent
37091ed050
commit
2a4b1c5207
@ -1,5 +1,5 @@
|
||||
{
|
||||
"date": "2025-06-23T10:06:51.606Z",
|
||||
"date": "2025-06-26T08:17:23.105Z",
|
||||
"preset": "node-server",
|
||||
"framework": {
|
||||
"name": "nuxt",
|
||||
|
@ -1 +1 @@
|
||||
import{_ as s,t as a,v as i,x as u,y as e,z as o}from"./CRzDuBes.js";const l={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},c={class:"max-w-520px text-center"},d=["textContent"],p=["textContent"],f={__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 r=t;return a({title:`${r.statusCode} - ${r.statusMessage} | ${r.appName}`,script:[{children:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{children:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(g,n)=>(u(),i("div",l,[n[0]||(n[0]=e("div",{class:"-bottom-1/2 fixed h-1/2 left-0 right-0 spotlight"},null,-1)),e("div",c,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:o(t.statusCode)},null,8,d),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:o(t.description)},null,8,p)])]))}},m=s(f,[["__scopeId","data-v-84d937c0"]]);export{m as default};
|
||||
import{_ as s,t as a,v as i,x as u,y as e,z as o}from"./Bnz5WF9T.js";const l={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},c={class:"max-w-520px text-center"},d=["textContent"],p=["textContent"],f={__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 r=t;return a({title:`${r.statusCode} - ${r.statusMessage} | ${r.appName}`,script:[{children:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{children:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(g,n)=>(u(),i("div",l,[n[0]||(n[0]=e("div",{class:"-bottom-1/2 fixed h-1/2 left-0 right-0 spotlight"},null,-1)),e("div",c,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:o(t.statusCode)},null,8,d),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:o(t.description)},null,8,p)])]))}},m=s(f,[["__scopeId","data-v-84d937c0"]]);export{m as default};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
{"id":"39d0701a-823e-4566-8611-b033ab28f310","timestamp":1750673196619}
|
||||
{"id":"7bc3d63a-2530-498d-9994-9a192be3bca3","timestamp":1750925826660}
|
@ -1 +0,0 @@
|
||||
{"id":"39d0701a-823e-4566-8611-b033ab28f310","timestamp":1750673196619,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
@ -0,0 +1 @@
|
||||
{"id":"7bc3d63a-2530-498d-9994-9a192be3bca3","timestamp":1750925826660,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
@ -2609,75 +2609,75 @@ const assets$1 = {
|
||||
"size": 2238,
|
||||
"path": "../public/favicon.ico"
|
||||
},
|
||||
"/static/CRzDuBes.js": {
|
||||
"/static/Bnz5WF9T.js": {
|
||||
"type": "text/javascript; charset=utf-8",
|
||||
"etag": "\"5b19b-+GbAViaGA1XgS5r/x/J4qeYkXdM\"",
|
||||
"mtime": "2025-06-23T10:06:40.528Z",
|
||||
"size": 373147,
|
||||
"path": "../public/static/CRzDuBes.js"
|
||||
"etag": "\"5b1bc-f7Lix7/sshCOSMvmn8TKV31lhLo\"",
|
||||
"mtime": "2025-06-26T08:17:10.770Z",
|
||||
"size": 373180,
|
||||
"path": "../public/static/Bnz5WF9T.js"
|
||||
},
|
||||
"/static/DpAPav9O.js": {
|
||||
"/static/B_fhJsDh.js": {
|
||||
"type": "text/javascript; charset=utf-8",
|
||||
"etag": "\"24c9-dmxaqfnuImTtL6ApFOWtpPY0U9I\"",
|
||||
"mtime": "2025-06-23T10:06:40.530Z",
|
||||
"etag": "\"d3c-3hHk7YSJAqbVW/+bAdwO1qnlqd8\"",
|
||||
"mtime": "2025-06-26T08:17:10.770Z",
|
||||
"size": 3388,
|
||||
"path": "../public/static/B_fhJsDh.js"
|
||||
},
|
||||
"/static/CZev01jU.js": {
|
||||
"type": "text/javascript; charset=utf-8",
|
||||
"etag": "\"24c9-LZC3vkS8ZznnWuNOWeXaVw9Gap4\"",
|
||||
"mtime": "2025-06-26T08:17:10.770Z",
|
||||
"size": 9417,
|
||||
"path": "../public/static/DpAPav9O.js"
|
||||
"path": "../public/static/CZev01jU.js"
|
||||
},
|
||||
"/static/empty-icon.CyaRoygc.png": {
|
||||
"type": "image/png",
|
||||
"etag": "\"17df-ZbUVuzPJ5DAL9B9xteitdPCiUxY\"",
|
||||
"mtime": "2025-06-23T10:06:40.528Z",
|
||||
"mtime": "2025-06-26T08:17:10.770Z",
|
||||
"size": 6111,
|
||||
"path": "../public/static/empty-icon.CyaRoygc.png"
|
||||
},
|
||||
"/static/entry.Ac-gJZ5d.css": {
|
||||
"type": "text/css; charset=utf-8",
|
||||
"etag": "\"18a30-qmndbce/ZiLfG/YK0OQ7Cl+gk+8\"",
|
||||
"mtime": "2025-06-23T10:06:40.528Z",
|
||||
"mtime": "2025-06-26T08:17:10.770Z",
|
||||
"size": 100912,
|
||||
"path": "../public/static/entry.Ac-gJZ5d.css"
|
||||
},
|
||||
"/static/error-404.CZkObG7r.css": {
|
||||
"type": "text/css; charset=utf-8",
|
||||
"etag": "\"de4-qBee3TVrfYv3V1By16k8mWrjcVQ\"",
|
||||
"mtime": "2025-06-23T10:06:40.528Z",
|
||||
"mtime": "2025-06-26T08:17:10.768Z",
|
||||
"size": 3556,
|
||||
"path": "../public/static/error-404.CZkObG7r.css"
|
||||
},
|
||||
"/static/error-500.BFrSi6nG.css": {
|
||||
"type": "text/css; charset=utf-8",
|
||||
"etag": "\"75c-1DSF9z8DiRXW3VbuCpNqepB9vI0\"",
|
||||
"mtime": "2025-06-23T10:06:40.530Z",
|
||||
"mtime": "2025-06-26T08:17:10.770Z",
|
||||
"size": 1884,
|
||||
"path": "../public/static/error-500.BFrSi6nG.css"
|
||||
},
|
||||
"/static/FAYzN8ac.js": {
|
||||
"type": "text/javascript; charset=utf-8",
|
||||
"etag": "\"d3c-spDRCQWVQJhMFYI4Mo8pT0cq1Z0\"",
|
||||
"mtime": "2025-06-23T10:06:40.530Z",
|
||||
"size": 3388,
|
||||
"path": "../public/static/FAYzN8ac.js"
|
||||
},
|
||||
"/static/logo.DlviZpxD.png": {
|
||||
"type": "image/png",
|
||||
"etag": "\"843f-FSXGFGigIHmtzjdcQzuMz/a7E+o\"",
|
||||
"mtime": "2025-06-23T10:06:40.528Z",
|
||||
"mtime": "2025-06-26T08:17:10.768Z",
|
||||
"size": 33855,
|
||||
"path": "../public/static/logo.DlviZpxD.png"
|
||||
},
|
||||
"/static/builds/latest.json": {
|
||||
"type": "application/json",
|
||||
"etag": "\"47-4VrgxMbLDp86q+KVBN/vXNaRpLY\"",
|
||||
"mtime": "2025-06-23T10:06:43.745Z",
|
||||
"etag": "\"47-bYVHrmrJxt0pdTbooLHTZ8albj0\"",
|
||||
"mtime": "2025-06-26T08:17:13.816Z",
|
||||
"size": 71,
|
||||
"path": "../public/static/builds/latest.json"
|
||||
},
|
||||
"/static/builds/meta/39d0701a-823e-4566-8611-b033ab28f310.json": {
|
||||
"/static/builds/meta/7bc3d63a-2530-498d-9994-9a192be3bca3.json": {
|
||||
"type": "application/json",
|
||||
"etag": "\"8b-B/+5ITz0TAWIB2mMMXDvovJolT8\"",
|
||||
"mtime": "2025-06-23T10:06:43.745Z",
|
||||
"etag": "\"8b-wBsYSRWVs44mTgvCBydh4SIFajw\"",
|
||||
"mtime": "2025-06-26T08:17:13.816Z",
|
||||
"size": 139,
|
||||
"path": "../public/static/builds/meta/39d0701a-823e-4566-8611-b033ab28f310.json"
|
||||
"path": "../public/static/builds/meta/7bc3d63a-2530-498d-9994-9a192be3bca3.json"
|
||||
}
|
||||
};
|
||||
|
||||
@ -4349,7 +4349,7 @@ function _expandFromEnv(value) {
|
||||
const _inlineRuntimeConfig = {
|
||||
"app": {
|
||||
"baseURL": "/",
|
||||
"buildId": "39d0701a-823e-4566-8611-b033ab28f310",
|
||||
"buildId": "7bc3d63a-2530-498d-9994-9a192be3bca3",
|
||||
"buildAssetsDir": "/static/",
|
||||
"cdnURL": ""
|
||||
},
|
||||
|
@ -18,7 +18,7 @@ const client_manifest = {
|
||||
"module": true,
|
||||
"prefetch": true,
|
||||
"preload": true,
|
||||
"file": "DpAPav9O.js",
|
||||
"file": "CZev01jU.js",
|
||||
"name": "error-404",
|
||||
"src": "node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-404.vue",
|
||||
"isDynamicEntry": true,
|
||||
@ -38,7 +38,7 @@ const client_manifest = {
|
||||
"module": true,
|
||||
"prefetch": true,
|
||||
"preload": true,
|
||||
"file": "FAYzN8ac.js",
|
||||
"file": "B_fhJsDh.js",
|
||||
"name": "error-500",
|
||||
"src": "node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-500.vue",
|
||||
"isDynamicEntry": true,
|
||||
@ -58,7 +58,7 @@ const client_manifest = {
|
||||
"module": true,
|
||||
"prefetch": true,
|
||||
"preload": true,
|
||||
"file": "CRzDuBes.js",
|
||||
"file": "Bnz5WF9T.js",
|
||||
"name": "entry",
|
||||
"src": "node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/entry.js",
|
||||
"isEntry": true,
|
||||
|
@ -3454,7 +3454,7 @@ const useEmptyValuesProps = buildProps({
|
||||
});
|
||||
|
||||
const keysOf = (arr) => Object.keys(arr);
|
||||
// shared_cjs_prodExports.hasOwn;
|
||||
shared_cjs_prodExports.hasOwn;
|
||||
|
||||
const globalConfig = ref();
|
||||
function useGlobalConfig(key, defaultValue = void 0) {
|
||||
@ -5781,7 +5781,7 @@ const _sfc_main$2 = {
|
||||
const route = useRoute();
|
||||
const baseURL = "https://ask.gter.net";
|
||||
let type = ref("list");
|
||||
let realname = ref(0);
|
||||
let realname = ref(1);
|
||||
const openAttest = () => {
|
||||
const handleAttestClose = () => {
|
||||
var _a;
|
||||
|
16
app.vue
16
app.vue
@ -511,7 +511,7 @@ import axios from "axios";
|
||||
export default {
|
||||
name: "#answer-app",
|
||||
async setup() {
|
||||
const author = "a37009134499cce160254db1bc9ccb94";
|
||||
const author = "d5645b2afb14eb6e62763901ff977059";
|
||||
|
||||
if (process.env.NODE_ENV !== "production" && document) document.cookie = "miucms_session=" + author;
|
||||
|
||||
@ -654,20 +654,18 @@ export default {
|
||||
getUserInfoWin();
|
||||
});
|
||||
|
||||
let realname = ref(0); // 是否已经实名
|
||||
let realname = ref(1); // 是否已经实名
|
||||
|
||||
const getUserInfoWin = () => {
|
||||
const checkUser = () => {
|
||||
const user = window.userInfoWin;
|
||||
if (!user) {
|
||||
setTimeout(checkUser, 100);
|
||||
return;
|
||||
}
|
||||
if (!user) return;
|
||||
document.removeEventListener("getUser", checkUser);
|
||||
userInfoWin.value = user;
|
||||
realname.value = user.realname || 0;
|
||||
realname.value = user.realname;
|
||||
};
|
||||
|
||||
setTimeout(checkUser, 100);
|
||||
document.addEventListener("getUser", checkUser);
|
||||
};
|
||||
|
||||
const openAttest = () => {
|
||||
@ -737,7 +735,7 @@ export default {
|
||||
let timer = setInterval(() => {
|
||||
if (window["userInfoWin"] && Object.keys(window["userInfoWin"]).length !== 0) {
|
||||
clearInterval(timer);
|
||||
user.value = window["userInfoWin"];
|
||||
user.value = window["userInfoWin"];
|
||||
if (window["userInfoWin"]["uid"] || window["userInfoWin"]["uin"]) isNeedLogin.value = false;
|
||||
}
|
||||
count++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user