修改评论删除权限不出来问题

This commit is contained in:
DESKTOP-RQ919RC\Pc 2025-03-21 18:54:50 +08:00
parent 4e0896d553
commit d594ab85cf
35 changed files with 4298 additions and 153 deletions

View File

@ -1,5 +1,5 @@
{ {
"date": "2025-03-21T08:55:40.699Z", "date": "2025-03-21T10:49:19.021Z",
"preset": "node-server", "preset": "node-server",
"framework": { "framework": {
"name": "nuxt", "name": "nuxt",

File diff suppressed because one or more lines are too long

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 s,t as a,v as i,x as u,y as e,z as o}from"./CRXAzcEn.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"./BfHXjvPo.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};

View File

@ -1 +1 @@
{"id":"84c59997-e6ef-4860-ba29-dbc60a863dfa","timestamp":1742547325999} {"id":"cd0bc515-1a07-45ea-a604-8d38b66aa98a","timestamp":1742554144201}

View File

@ -1 +0,0 @@
{"id":"84c59997-e6ef-4860-ba29-dbc60a863dfa","timestamp":1742547325999,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

View File

@ -0,0 +1 @@
{"id":"cd0bc515-1a07-45ea-a604-8d38b66aa98a","timestamp":1742554144201,"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

@ -2609,75 +2609,75 @@ const assets$1 = {
"size": 2238, "size": 2238,
"path": "../public/favicon.ico" "path": "../public/favicon.ico"
}, },
"/static/ChZuJ7l0.js": { "/static/-P2gMZFA.js": {
"type": "text/javascript; charset=utf-8", "type": "text/javascript; charset=utf-8",
"etag": "\"24c9-ltu6TT2TphPEMEAcMWbvhQpBBSw\"", "etag": "\"24c9-vD3+NcHgU7wMxVw+V0292RsZtJ8\"",
"mtime": "2025-03-21T08:55:30.107Z", "mtime": "2025-03-21T10:49:08.190Z",
"size": 9417, "size": 9417,
"path": "../public/static/ChZuJ7l0.js" "path": "../public/static/-P2gMZFA.js"
}, },
"/static/CRXAzcEn.js": { "/static/BfHXjvPo.js": {
"type": "text/javascript; charset=utf-8", "type": "text/javascript; charset=utf-8",
"etag": "\"508be-hk5SsrFiqsyFjkQ9JTNRRN9OwM8\"", "etag": "\"5afd1-VxKbMB5tTuTL8p/DH4uJ8cMYOpo\"",
"mtime": "2025-03-21T08:55:30.107Z", "mtime": "2025-03-21T10:49:08.190Z",
"size": 329918, "size": 372689,
"path": "../public/static/CRXAzcEn.js" "path": "../public/static/BfHXjvPo.js"
},
"/static/DxslyRzt.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"d3c-P5thR963vJXR1ML2uKdqh70HH+g\"",
"mtime": "2025-03-21T10:49:08.190Z",
"size": 3388,
"path": "../public/static/DxslyRzt.js"
}, },
"/static/empty-icon.CyaRoygc.png": { "/static/empty-icon.CyaRoygc.png": {
"type": "image/png", "type": "image/png",
"etag": "\"17df-ZbUVuzPJ5DAL9B9xteitdPCiUxY\"", "etag": "\"17df-ZbUVuzPJ5DAL9B9xteitdPCiUxY\"",
"mtime": "2025-03-21T08:55:30.107Z", "mtime": "2025-03-21T10:49:08.190Z",
"size": 6111, "size": 6111,
"path": "../public/static/empty-icon.CyaRoygc.png" "path": "../public/static/empty-icon.CyaRoygc.png"
}, },
"/static/entry.VRf8S3Qj.css": { "/static/entry.ZDbmrW6p.css": {
"type": "text/css; charset=utf-8", "type": "text/css; charset=utf-8",
"etag": "\"13eeb-dUZuT/y1NkGPbkZwcVsxh3oI6KA\"", "etag": "\"189f2-/x6t1gAZnr7CMaH/hj0pzDgkl7I\"",
"mtime": "2025-03-21T08:55:30.107Z", "mtime": "2025-03-21T10:49:08.190Z",
"size": 81643, "size": 100850,
"path": "../public/static/entry.VRf8S3Qj.css" "path": "../public/static/entry.ZDbmrW6p.css"
}, },
"/static/error-404.CZkObG7r.css": { "/static/error-404.CZkObG7r.css": {
"type": "text/css; charset=utf-8", "type": "text/css; charset=utf-8",
"etag": "\"de4-qBee3TVrfYv3V1By16k8mWrjcVQ\"", "etag": "\"de4-qBee3TVrfYv3V1By16k8mWrjcVQ\"",
"mtime": "2025-03-21T08:55:30.107Z", "mtime": "2025-03-21T10:49:08.190Z",
"size": 3556, "size": 3556,
"path": "../public/static/error-404.CZkObG7r.css" "path": "../public/static/error-404.CZkObG7r.css"
}, },
"/static/error-500.BFrSi6nG.css": { "/static/error-500.BFrSi6nG.css": {
"type": "text/css; charset=utf-8", "type": "text/css; charset=utf-8",
"etag": "\"75c-1DSF9z8DiRXW3VbuCpNqepB9vI0\"", "etag": "\"75c-1DSF9z8DiRXW3VbuCpNqepB9vI0\"",
"mtime": "2025-03-21T08:55:30.107Z", "mtime": "2025-03-21T10:49:08.190Z",
"size": 1884, "size": 1884,
"path": "../public/static/error-500.BFrSi6nG.css" "path": "../public/static/error-500.BFrSi6nG.css"
}, },
"/static/lKzEm0ju.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"d3c-S+tBCAVECTYb6FSIRNbsz7iB+FM\"",
"mtime": "2025-03-21T08:55:30.107Z",
"size": 3388,
"path": "../public/static/lKzEm0ju.js"
},
"/static/logo.DlviZpxD.png": { "/static/logo.DlviZpxD.png": {
"type": "image/png", "type": "image/png",
"etag": "\"843f-FSXGFGigIHmtzjdcQzuMz/a7E+o\"", "etag": "\"843f-FSXGFGigIHmtzjdcQzuMz/a7E+o\"",
"mtime": "2025-03-21T08:55:30.107Z", "mtime": "2025-03-21T10:49:08.189Z",
"size": 33855, "size": 33855,
"path": "../public/static/logo.DlviZpxD.png" "path": "../public/static/logo.DlviZpxD.png"
}, },
"/static/builds/latest.json": { "/static/builds/latest.json": {
"type": "application/json", "type": "application/json",
"etag": "\"47-0oSWh04n5XxAmDXMSzAMmwd4bEY\"", "etag": "\"47-aEbeErTxlDyEBxXNmndrvj23CQA\"",
"mtime": "2025-03-21T08:55:33.093Z", "mtime": "2025-03-21T10:49:11.057Z",
"size": 71, "size": 71,
"path": "../public/static/builds/latest.json" "path": "../public/static/builds/latest.json"
}, },
"/static/builds/meta/84c59997-e6ef-4860-ba29-dbc60a863dfa.json": { "/static/builds/meta/cd0bc515-1a07-45ea-a604-8d38b66aa98a.json": {
"type": "application/json", "type": "application/json",
"etag": "\"8b-aj3Ja9ysgKUO+WNcUAz5XZEj0MU\"", "etag": "\"8b-Um36BSxNpFEImfkqxe1qwdERGOI\"",
"mtime": "2025-03-21T08:55:33.093Z", "mtime": "2025-03-21T10:49:11.057Z",
"size": 139, "size": 139,
"path": "../public/static/builds/meta/84c59997-e6ef-4860-ba29-dbc60a863dfa.json" "path": "../public/static/builds/meta/cd0bc515-1a07-45ea-a604-8d38b66aa98a.json"
} }
}; };
@ -4349,7 +4349,7 @@ function _expandFromEnv(value) {
const _inlineRuntimeConfig = { const _inlineRuntimeConfig = {
"app": { "app": {
"baseURL": "/", "baseURL": "/",
"buildId": "84c59997-e6ef-4860-ba29-dbc60a863dfa", "buildId": "cd0bc515-1a07-45ea-a604-8d38b66aa98a",
"buildAssetsDir": "/static/", "buildAssetsDir": "/static/",
"cdnURL": "" "cdnURL": ""
}, },

View File

@ -1,6 +0,0 @@
import { a as app_vue_vue_type_style_index_0_lang } from './entry-styles-4.mjs.mjs';
const appStyles_BfYsvsru = [app_vue_vue_type_style_index_0_lang];
export { appStyles_BfYsvsru as default };
//# sourceMappingURL=app-styles.BfYsvsru.mjs.map

View File

@ -1 +0,0 @@
{"version":3,"file":"app-styles.BfYsvsru.mjs","sources":["../../../../.nuxt/dist/server/static/app-styles.BfYsvsru.mjs"],"sourcesContent":null,"names":["style_0"],"mappings":";;AACA,2BAAe,CAACA,mCAAO;;;;"}

View File

@ -0,0 +1,6 @@
import { a as app_vue_vue_type_style_index_0_lang } from './entry-styles-7.mjs.mjs';
const appStyles_CoC7fGAv = [app_vue_vue_type_style_index_0_lang, app_vue_vue_type_style_index_0_lang];
export { appStyles_CoC7fGAv as default };
//# sourceMappingURL=app-styles.CoC7fGAv.mjs.map

View File

@ -0,0 +1 @@
{"version":3,"file":"app-styles.CoC7fGAv.mjs","sources":["../../../../.nuxt/dist/server/static/app-styles.CoC7fGAv.mjs"],"sourcesContent":null,"names":["style_0","style_1"],"mappings":";;AAEA,2BAAe,CAACA,mCAAO,EAAEC,mCAAO;;;;"}

View File

@ -0,0 +1,6 @@
import { a as app_vue_vue_type_style_index_0_lang } from './entry-styles-7.mjs.mjs';
const appStyles_DjCRiSL = [app_vue_vue_type_style_index_0_lang];
export { appStyles_DjCRiSL as default };
//# sourceMappingURL=app-styles.DjCRi-SL.mjs.map

View File

@ -0,0 +1 @@
{"version":3,"file":"app-styles.DjCRi-SL.mjs","sources":["../../../../.nuxt/dist/server/static/app-styles.DjCRi-SL.mjs"],"sourcesContent":null,"names":["style_0"],"mappings":";;AACA,0BAAe,CAACA,mCAAO;;;;"}

View File

@ -1,6 +0,0 @@
import { a as app_vue_vue_type_style_index_0_lang } from './entry-styles-4.mjs.mjs';
const appStyles_Do9N83c2 = [app_vue_vue_type_style_index_0_lang, app_vue_vue_type_style_index_0_lang];
export { appStyles_Do9N83c2 as default };
//# sourceMappingURL=app-styles.Do9N83c2.mjs.map

View File

@ -1 +0,0 @@
{"version":3,"file":"app-styles.Do9N83c2.mjs","sources":["../../../../.nuxt/dist/server/static/app-styles.Do9N83c2.mjs"],"sourcesContent":null,"names":["style_0","style_1"],"mappings":";;AAEA,2BAAe,CAACA,mCAAO,EAAEC,mCAAO;;;;"}

View File

@ -18,7 +18,7 @@ const client_manifest = {
"module": true, "module": true,
"prefetch": true, "prefetch": true,
"preload": true, "preload": true,
"file": "ChZuJ7l0.js", "file": "-P2gMZFA.js",
"name": "error-404", "name": "error-404",
"src": "node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-404.vue", "src": "node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-404.vue",
"isDynamicEntry": true, "isDynamicEntry": true,
@ -38,7 +38,7 @@ const client_manifest = {
"module": true, "module": true,
"prefetch": true, "prefetch": true,
"preload": true, "preload": true,
"file": "lKzEm0ju.js", "file": "DxslyRzt.js",
"name": "error-500", "name": "error-500",
"src": "node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-500.vue", "src": "node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-500.vue",
"isDynamicEntry": true, "isDynamicEntry": true,
@ -58,7 +58,7 @@ const client_manifest = {
"module": true, "module": true,
"prefetch": true, "prefetch": true,
"preload": true, "preload": true,
"file": "CRXAzcEn.js", "file": "BfHXjvPo.js",
"name": "entry", "name": "entry",
"src": "node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/entry.js", "src": "node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/entry.js",
"isEntry": true, "isEntry": true,
@ -67,7 +67,7 @@ const client_manifest = {
"node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-500.vue" "node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-500.vue"
], ],
"css": [ "css": [
"entry.VRf8S3Qj.css" "entry.ZDbmrW6p.css"
], ],
"assets": [ "assets": [
"logo.DlviZpxD.png", "logo.DlviZpxD.png",
@ -75,8 +75,8 @@ const client_manifest = {
], ],
"_globalCSS": true "_globalCSS": true
}, },
"entry.VRf8S3Qj.css": { "entry.ZDbmrW6p.css": {
"file": "entry.VRf8S3Qj.css", "file": "entry.ZDbmrW6p.css",
"resourceType": "style", "resourceType": "style",
"prefetch": true, "prefetch": true,
"preload": true "preload": true

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
{"version":3,"file":"entry-styles-4.mjs.mjs","sources":[],"sourcesContent":null,"names":[],"mappings":";;;;"}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
{"version":3,"file":"entry-styles-7.mjs.mjs","sources":[],"sourcesContent":null,"names":[],"mappings":";;;;"}

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
{"version":3,"file":"entry-styles.4OIjBqNs.mjs","sources":["../../../../.nuxt/dist/server/static/entry-styles.4OIjBqNs.mjs"],"sourcesContent":null,"names":["style_0","style_1","style_2","style_3"],"mappings":";;;;;;;;AAIA,6BAAe,CAACA,IAAO,EAAEC,OAAO,EAAEC,SAAO,EAAEC,mCAAO;;;;"}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
{"version":3,"file":"entry-styles.BMEJ6WCM.mjs","sources":["../../../../.nuxt/dist/server/static/entry-styles.BMEJ6WCM.mjs"],"sourcesContent":null,"names":["style_0","style_1","style_2","style_3","style_4","style_5","style_6"],"mappings":";;;;;;;;;;;;;;AAOA,6BAAe,CAACA,IAAO,EAAEC,QAAO,EAAEC,QAAO,EAAEC,SAAO,EAAEC,OAAO,EAAEC,SAAO,EAAEC,mCAAO;;;;"}

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -1,12 +1,12 @@
const interopDefault = r => r.default || r || []; const interopDefault = r => r.default || r || [];
const styles = { const styles = {
"node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/entry.js": () => import('./entry-styles.4OIjBqNs.mjs').then(interopDefault), "node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/entry.js": () => import('./entry-styles.BMEJ6WCM.mjs').then(interopDefault),
"app.vue": () => import('./app-styles.Do9N83c2.mjs').then(interopDefault), "app.vue": () => import('./app-styles.CoC7fGAv.mjs').then(interopDefault),
"node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-404.vue": () => import('./error-404-styles.wRz_-Rw1.mjs').then(interopDefault), "node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-404.vue": () => import('./error-404-styles.wRz_-Rw1.mjs').then(interopDefault),
"node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-500.vue": () => import('./error-500-styles.TwxDbBgG.mjs').then(interopDefault), "node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-500.vue": () => import('./error-500-styles.TwxDbBgG.mjs').then(interopDefault),
"node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-404.vue?vue&type=style&index=0&scoped=075d74b5&lang.css": () => import('./error-404-styles.BNmKahfp.mjs').then(interopDefault),
"node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-500.vue?vue&type=style&index=0&scoped=84d937c0&lang.css": () => import('./error-500-styles.Cx3AJg0u.mjs').then(interopDefault), "node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-500.vue?vue&type=style&index=0&scoped=84d937c0&lang.css": () => import('./error-500-styles.Cx3AJg0u.mjs').then(interopDefault),
"app.vue?vue&type=style&index=0&lang.css": () => import('./app-styles.BfYsvsru.mjs').then(interopDefault) "node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-404.vue?vue&type=style&index=0&scoped=075d74b5&lang.css": () => import('./error-404-styles.BNmKahfp.mjs').then(interopDefault),
"app.vue?vue&type=style&index=0&lang.css": () => import('./app-styles.DjCRi-SL.mjs').then(interopDefault)
}; };
export { styles as default }; export { styles as default };

View File

@ -509,7 +509,7 @@ import axios from "axios"
export default { export default {
name: "#answer-app", name: "#answer-app",
async setup() { async setup() {
const author = "c1fb97e6994539d87922b1b60c09d43c" const author = "0f92e9fe72bf5d7806253566eb46ccfd"
const $ajax = (url, data) => { const $ajax = (url, data) => {
url = url.indexOf("//") > -1 ? url : baseURL + url url = url.indexOf("//") > -1 ? url : baseURL + url
return new Promise(function (resolve, reject) { return new Promise(function (resolve, reject) {

View File

@ -227,6 +227,16 @@
</div> </div>
</div> </div>
</div> </div>
<el-dialog v-model="dialogVisible" title="提示" width="500">
<span>确定删除该讨论吗</span>
<template #footer>
<div class="dialog-footer">
<el-button @click="dialogVisible = false"> </el-button>
<el-button type="primary" @click="confirmCommentDelete"> </el-button>
</div>
</template>
</el-dialog>
</div> </div>
</template> </template>
<script setup> <script setup>
@ -240,10 +250,12 @@ onMounted(() => {
let permissions = ref([]); let permissions = ref([]);
onMounted(() => { onMounted(() => {
// setTimeout(() => { setTimeout(() => {
// permissions.value = window["permissions"] || [] // permissions.value = window["permissions"] || [];
// // permissions.value = ["comment.edit", "comment.delete"] // if (process.env.NODE_ENV !== "production") permissions.value = ["comment.edit", "comment.delete"];
// }, 1000) // else
permissions.value = window["permissions"] || [];
}, 1000);
}); });
const emit = defineEmits(); const emit = defineEmits();
@ -714,25 +726,61 @@ const closeUserInfo = (index, i) => {
else if (index != undefined) commentList.value[index]["avatarState"] = false; else if (index != undefined) commentList.value[index]["avatarState"] = false;
}; };
//
// const commentDelete = (token, index, i) => {
// $ajax("/api/comment/commentDelete", {
// token,
// }).then((res) => {
// if (res.code != 200) {
// ElMessage.error(res.message);
// return;
// }
// if (i >= 0) {
// commentList.value[index].child.splice(i, 1);
// commentList.value[index].childnum -= 1;
// } else {
// commentTotalCount.value -= commentList.value[index].childnum;
// commentList.value.splice(index, 1);
// }
// commentTotalCount.value -= 1;
// });
// };
let dialogVisible = ref(false);
let commemtDelete = {};
// //
const commentDelete = (token, index, i) => { const commentDelete = (token, index, i) => {
$ajax("/api/comment/commentDelete", { commemtDelete = {
token, token,
index,
i,
};
dialogVisible.value = true;
};
const confirmCommentDelete = () => {
$ajax("/api/comment/commentDelete", {
token: commemtDelete.token,
}).then((res) => { }).then((res) => {
if (res.code != 200) { if (res.code != 200) {
ElMessage.error(res.message); ElMessage.error(res.message);
return; return;
} }
if (i >= 0) { if (commemtDelete.i >= 0) {
commentList.value[index].child.splice(i, 1); commentList.value[commemtDelete.index].child.splice(commemtDelete.i, 1);
commentList.value[index].childnum -= 1; commentList.value[commemtDelete.index].childnum -= 1;
} else { } else {
commentTotalCount.value -= commentList.value[index].childnum; commentTotalCount.value -= commentList.value[commemtDelete.index].childnum;
commentList.value.splice(index, 1); commentList.value.splice(commemtDelete.index, 1);
} }
commentTotalCount.value -= 1; commentTotalCount.value -= 1;
dialogVisible.value = false;
ElMessage.success(res.message || "操作成功");
}); });
}; };
@ -830,4 +878,3 @@ const postEditComment = () => {
const closeEditFileUpload = () => (editPicture.value = {}); const closeEditFileUpload = () => (editPicture.value = {});
</script> </script>
<style scoped></style>

View File

@ -21,7 +21,7 @@ body::-webkit-scrollbar {
font-family: "emojifont"; font-family: "emojifont";
src: url("https://oss.x-php.com/static/riposte/emojifont-sbix.ttf?t=questions"); src: url("https://oss.x-php.com/static/riposte/emojifont-sbix.ttf?t=questions");
} }
#answer-app * { * {
margin: 0; margin: 0;
padding: 0; padding: 0;
box-sizing: border-box; box-sizing: border-box;
@ -91,7 +91,7 @@ a {
word-break: break-all; word-break: break-all;
min-height: calc(100vh - 253px); min-height: calc(100vh - 253px);
} }
#answer-app header { #answer-app #pageHeader {
background: #f6f6f6; background: #f6f6f6;
height: 150px; height: 150px;
border: 1px solid #ebebeb; border: 1px solid #ebebeb;
@ -100,18 +100,18 @@ a {
flex-direction: column; flex-direction: column;
padding-top: 24px; padding-top: 24px;
} }
#answer-app header .top { #answer-app #pageHeader .top {
width: 1200px; width: 1200px;
margin-bottom: 31px; margin-bottom: 31px;
} }
#answer-app header .top .logo { #answer-app #pageHeader .top .logo {
width: 73px; width: 73px;
cursor: pointer; cursor: pointer;
} }
#answer-app header .top .right { #answer-app #pageHeader .top .right {
justify-content: flex-end; justify-content: flex-end;
} }
#answer-app header .top .right .searchInput { #answer-app #pageHeader .top .right .searchInput {
width: 320px; width: 320px;
height: 32px; height: 32px;
border: 1px solid #ebebeb; border: 1px solid #ebebeb;
@ -121,30 +121,30 @@ a {
padding-right: 16px; padding-right: 16px;
position: relative; position: relative;
} }
#answer-app header .top .right .searchInput input { #answer-app #pageHeader .top .right .searchInput input {
border: none; border: none;
outline: none; outline: none;
height: 100%; height: 100%;
padding-left: 16px; padding-left: 16px;
border-radius: 104px; border-radius: 104px;
} }
#answer-app header .top .right .searchInput .input-icon { #answer-app #pageHeader .top .right .searchInput .input-icon {
width: 20px; width: 20px;
height: 20px; height: 20px;
cursor: pointer; cursor: pointer;
} }
#answer-app header .top .right .searchInput .clear-search .cross-circle-black { #answer-app #pageHeader .top .right .searchInput .clear-search .cross-circle-black {
width: 14px; width: 14px;
height: 14px; height: 14px;
cursor: pointer; cursor: pointer;
} }
#answer-app header .top .right .searchInput .clear-search .halving-line { #answer-app #pageHeader .top .right .searchInput .clear-search .halving-line {
width: 1px; width: 1px;
height: 13px; height: 13px;
background-color: #ebebeb; background-color: #ebebeb;
margin: 0 17px; margin: 0 17px;
} }
#answer-app header .top .right .searchInput .history-box { #answer-app #pageHeader .top .right .searchInput .history-box {
position: absolute; position: absolute;
top: 36px; top: 36px;
left: 0; left: 0;
@ -156,13 +156,13 @@ a {
z-index: 10; z-index: 10;
padding-bottom: 14px; padding-bottom: 14px;
} }
#answer-app header .top .right .searchInput .history-box .history-title { #answer-app #pageHeader .top .right .searchInput .history-box .history-title {
font-size: 13px; font-size: 13px;
color: #aaaaaa; color: #aaaaaa;
padding-left: 16px; padding-left: 16px;
margin-bottom: 9px; margin-bottom: 9px;
} }
#answer-app header .top .right .searchInput .history-box .history-list .history-item { #answer-app #pageHeader .top .right .searchInput .history-box .history-list .history-item {
font-size: 14px; font-size: 14px;
color: #333; color: #333;
height: 30px; height: 30px;
@ -170,7 +170,7 @@ a {
padding: 0 16px; padding: 0 16px;
cursor: pointer; cursor: pointer;
} }
#answer-app header .top .right .btn-list { #answer-app #pageHeader .top .right .btn-list {
width: 221px; width: 221px;
height: 30px; height: 30px;
border: 1px solid #ebebeb; border: 1px solid #ebebeb;
@ -179,12 +179,12 @@ a {
color: #555; color: #555;
margin-left: 20px; margin-left: 20px;
} }
#answer-app header .top .right .btn-list .item { #answer-app #pageHeader .top .right .btn-list .item {
text-align: center; text-align: center;
position: relative; position: relative;
cursor: pointer; cursor: pointer;
} }
#answer-app header .top .right .btn-list .item:not(:last-of-type)::before { #answer-app #pageHeader .top .right .btn-list .item:not(:last-of-type)::before {
content: "|"; content: "|";
position: absolute; position: absolute;
top: 50%; top: 50%;
@ -193,7 +193,7 @@ a {
color: #d7d7d7; color: #d7d7d7;
font-size: 13px; font-size: 13px;
} }
#answer-app header .top .right .add-btn { #answer-app #pageHeader .top .right .add-btn {
width: 130px; width: 130px;
height: 30px; height: 30px;
background-color: #fddf6d; background-color: #fddf6d;
@ -203,12 +203,12 @@ a {
cursor: pointer; cursor: pointer;
margin-left: 20px; margin-left: 20px;
} }
#answer-app header .top .right .add-btn .add-icon { #answer-app #pageHeader .top .right .add-btn .add-icon {
width: 14px; width: 14px;
height: 14px; height: 14px;
margin-right: 4px; margin-right: 4px;
} }
#answer-app header .tab-box { #answer-app #pageHeader .tab-box {
width: 100%; width: 100%;
min-width: 1200px; min-width: 1200px;
z-index: 1; z-index: 1;
@ -216,31 +216,31 @@ a {
padding: 5px 0; padding: 5px 0;
margin: 0 auto; margin: 0 auto;
} }
#answer-app header .tab-box.tab-list-fixed { #answer-app #pageHeader .tab-box.tab-list-fixed {
position: fixed; position: fixed;
top: 0; top: 0;
} }
#answer-app header .tab-box .tab-list { #answer-app #pageHeader .tab-box .tab-list {
width: 1200px; width: 1200px;
} }
#answer-app header .tab-box .tab-list .item { #answer-app #pageHeader .tab-box .tab-list .item {
text-align: center; text-align: center;
font-size: 14px; font-size: 14px;
height: 24px; height: 24px;
color: #333; color: #333;
cursor: pointer; cursor: pointer;
} }
#answer-app header .tab-box .tab-list .item:not(:last-of-type) { #answer-app #pageHeader .tab-box .tab-list .item:not(:last-of-type) {
margin-right: 23px; margin-right: 23px;
} }
#answer-app header .tab-box .tab-list .item.pitch { #answer-app #pageHeader .tab-box .tab-list .item.pitch {
padding: 0 11px; padding: 0 11px;
background-color: #fa6b11; background-color: #fa6b11;
border-radius: 19px; border-radius: 19px;
font-weight: 650; font-weight: 650;
color: #ffffff; color: #ffffff;
} }
#answer-app header .tab-box .tab-list .halving-line { #answer-app #pageHeader .tab-box .tab-list .halving-line {
font-size: 14px; font-size: 14px;
color: #d7d7d7; color: #d7d7d7;
margin-right: 23px; margin-right: 23px;

View File

@ -28,7 +28,7 @@ body {
src: url("https://oss.x-php.com/static/riposte/emojifont-sbix.ttf?t=questions"); src: url("https://oss.x-php.com/static/riposte/emojifont-sbix.ttf?t=questions");
} }
#answer-app * { * {
margin: 0; margin: 0;
padding: 0; padding: 0;
box-sizing: border-box; box-sizing: border-box;
@ -114,7 +114,7 @@ a {
word-break: break-all; word-break: break-all;
min-height: calc(100vh - 253px); min-height: calc(100vh - 253px);
header { #pageHeader {
background: rgba(246, 246, 246, 1); background: rgba(246, 246, 246, 1);
height: 150px; height: 150px;
border: 1px solid rgba(235, 235, 235, 1); border: 1px solid rgba(235, 235, 235, 1);