fix(api): 修改评论图片上传接口为支持FormData格式

refactor(Item.vue): 调整样式和布局,优化图片高度和文本显示

feat(details/[id].vue): 实现图片上传配置获取和FormData上传功能
This commit is contained in:
DESKTOP-RQ919RC\Pc
2025-09-08 17:16:40 +08:00
parent 0d111436af
commit 62aafa10ac
66 changed files with 475 additions and 433 deletions

View File

@@ -1 +1 @@
import{_ as s}from"./DlAUqK2U.js";import{u as i}from"./Bl3vCeVf.js";import{t as a,v as u,x as e,y as o}from"./B9UwQxCB.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 i({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(),a("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)])]))}},x=s(f,[["__scopeId","data-v-84d937c0"]]);export{x as default};
import{_ as s}from"./DlAUqK2U.js";import{u as i}from"./opzARDxf.js";import{t as a,v as u,x as e,y as o}from"./C9zm8FQY.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 i({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(),a("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)])]))}},x=s(f,[["__scopeId","data-v-84d937c0"]]);export{x as default};

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

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
import{u as t}from"./B9UwQxCB.js";import{u as e}from"./Bl3vCeVf.js";const a={__name:"index",setup(r){return t().replace("/index.html"),e({script:[{src:"https://app.gter.net/bottom?tpl=header&menukey=mj"},{src:"https://app.gter.net/bottom?tpl=footer,popupnotification",body:!0}]}),(p,s)=>null}};export{a as default};
import{u as t}from"./C9zm8FQY.js";import{u as e}from"./opzARDxf.js";const a={__name:"index",setup(r){return t().replace("/index.html"),e({script:[{src:"https://app.gter.net/bottom?tpl=header&menukey=mj"},{src:"https://app.gter.net/bottom?tpl=footer,popupnotification",body:!0}]}),(p,s)=>null}};export{a as default};

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,4 +1,4 @@
import{an as V}from"./CA7yT7zc.js";function $(x,v){for(var d=0;d<v.length;d++){const g=v[d];if(typeof g!="string"&&!Array.isArray(g)){for(const f in g)if(f!=="default"&&!(f in x)){const h=Object.getOwnPropertyDescriptor(g,f);h&&Object.defineProperty(x,f,h.get?h:{enumerable:!0,get:()=>g[f]})}}}return Object.freeze(Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}))}var L={exports:{}},C={exports:{}},W={exports:{}},j=W.exports,F;function Q(){return F||(F=1,function(x){(function(v,d){x.exports?x.exports=d():v.EvEmitter=d()})(typeof window<"u"?window:j,function(){function v(){}var d=v.prototype;return d.on=function(g,f){if(!(!g||!f)){var h=this._events=this._events||{},a=h[g]=h[g]||[];return a.indexOf(f)==-1&&a.push(f),this}},d.once=function(g,f){if(!(!g||!f)){this.on(g,f);var h=this._onceEvents=this._onceEvents||{},a=h[g]=h[g]||{};return a[f]=!0,this}},d.off=function(g,f){var h=this._events&&this._events[g];if(!(!h||!h.length)){var a=h.indexOf(f);return a!=-1&&h.splice(a,1),this}},d.emitEvent=function(g,f){var h=this._events&&this._events[g];if(!(!h||!h.length)){h=h.slice(0),f=f||[];for(var a=this._onceEvents&&this._onceEvents[g],o=0;o<h.length;o++){var s=h[o],l=a&&a[s];l&&(this.off(g,s),delete a[s]),s.apply(this,f)}return this}},d.allOff=function(){delete this._events,delete this._onceEvents},v})}(W)),W.exports}var R={exports:{}};/*!
import{ao as V}from"./DVL-yUcV.js";function $(x,v){for(var d=0;d<v.length;d++){const g=v[d];if(typeof g!="string"&&!Array.isArray(g)){for(const f in g)if(f!=="default"&&!(f in x)){const h=Object.getOwnPropertyDescriptor(g,f);h&&Object.defineProperty(x,f,h.get?h:{enumerable:!0,get:()=>g[f]})}}}return Object.freeze(Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}))}var L={exports:{}},C={exports:{}},W={exports:{}},j=W.exports,F;function Q(){return F||(F=1,function(x){(function(v,d){x.exports?x.exports=d():v.EvEmitter=d()})(typeof window<"u"?window:j,function(){function v(){}var d=v.prototype;return d.on=function(g,f){if(!(!g||!f)){var h=this._events=this._events||{},a=h[g]=h[g]||[];return a.indexOf(f)==-1&&a.push(f),this}},d.once=function(g,f){if(!(!g||!f)){this.on(g,f);var h=this._onceEvents=this._onceEvents||{},a=h[g]=h[g]||{};return a[f]=!0,this}},d.off=function(g,f){var h=this._events&&this._events[g];if(!(!h||!h.length)){var a=h.indexOf(f);return a!=-1&&h.splice(a,1),this}},d.emitEvent=function(g,f){var h=this._events&&this._events[g];if(!(!h||!h.length)){h=h.slice(0),f=f||[];for(var a=this._onceEvents&&this._onceEvents[g],o=0;o<h.length;o++){var s=h[o],l=a&&a[s];l&&(this.off(g,s),delete a[s]),s.apply(this,f)}return this}},d.allOff=function(){delete this._events,delete this._onceEvents},v})}(W)),W.exports}var R={exports:{}};/*!
* getSize v2.0.3
* measure size of elements
* MIT license

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

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 @@
{"id":"7b4e8db6-de6e-4a45-8d6a-4c556b10132b","timestamp":1756708882991}
{"id":"7266c165-2f1a-456b-9408-bf8f636ba1a0","timestamp":1757322758186}

View File

@@ -0,0 +1 @@
{"id":"7266c165-2f1a-456b-9408-bf8f636ba1a0","timestamp":1757322758186,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

View File

@@ -1 +0,0 @@
{"id":"7b4e8db6-de6e-4a45-8d6a-4c556b10132b","timestamp":1756708882991,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

View File

@@ -0,0 +1 @@
.box[data-v-b338556c]{background-color:#fff;border-radius:8px;cursor:pointer;margin-bottom:20px;padding:20px 0 25px 20px;width:385px}.box:hover .content .text-box[data-v-b338556c]{background:#72db86}.box:hover .content .text-box .text[data-v-b338556c],.box:hover .content .text-box .time[data-v-b338556c]{color:#fff}.box:hover .content .text-box .time .time-icon.time-black-icon[data-v-b338556c]{display:none}.box:hover .content .text-box .time .time-icon.time-white-icon[data-v-b338556c]{display:block}.box .img[data-v-b338556c]{height:-moz-min-content;height:min-content;margin-right:10px;width:26px}.box .content[data-v-b338556c]{flex-direction:column}.box .content .name[data-v-b338556c]{color:#000;font-size:16px;font-weight:650;margin-bottom:16px;padding-right:10px;word-break:break-all}.box .content .list[data-v-b338556c]{flex-direction:column;margin-bottom:14px}.box .content .list .item[data-v-b338556c]:not(:last-of-type){margin-bottom:8px}.box .content .list .item .item-name[data-v-b338556c]{color:#7f7f7f;font-size:13px;line-height:20px;margin-right:12.5px}.box .content .list .item .item-value[data-v-b338556c]{color:#333;font-size:14px;width:242px}.box .content .text-box[data-v-b338556c]{background:#f2f2f2;border:1px solid #f6f6f6;border-radius:10px;margin-bottom:11px;margin-right:19px;padding:12px;transition:all .3s}.box .content .text-box .text[data-v-b338556c]{color:#333;display:-webkit-box;font-size:13px;line-height:24px;margin-bottom:12px;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.box .content .text-box .time[data-v-b338556c]{color:#aaa;font-size:13px;line-height:20px}.box .content .text-box .time .time-icon[data-v-b338556c]{height:20px;margin-right:6px;width:20px}.box .content .text-box .time .time-icon.time-black-icon[data-v-b338556c]{display:block}.box .content .text-box .time .time-icon.time-white-icon[data-v-b338556c]{display:none}.box .content .data-list[data-v-b338556c]{color:#aaa;font-size:12px;justify-content:flex-end;margin-right:19px}.box .content .data-list .data-item[data-v-b338556c]{margin-left:26px}.box .content .data-list .data-item .data-item-icon[data-v-b338556c]{margin-right:5px;width:13px}.search-result[data-v-64182b0b]{margin:0 auto 30px;width:1200px}.search-result .keyword[data-v-64182b0b]{color:#fa6b11;cursor:pointer;font-size:14px}.search-result .keyword .keyword-icon[data-v-64182b0b]{height:14px;margin-left:9px;width:14px}.search-result .halving-line[data-v-64182b0b]{background:#d7d7d7;height:13px;margin:0 20px;width:1px}.search-result .total[data-v-64182b0b]{color:#7f7f7f;font-size:13px}.content[data-v-64182b0b]{align-items:flex-start;display:flex;flex-wrap:wrap;margin:0 auto 93px;min-height:calc(100vh - 250px);width:1200px}.content .empty-box[data-v-64182b0b]{background-color:#fff;border-radius:16px;height:540px;width:1200px}.in-end[data-v-64182b0b]{color:#7f7f7f;font-size:12px;margin-bottom:88px;text-align:center}.right-returnTop[data-v-64182b0b]{align-items:center;background-color:#323232;border-radius:50%;bottom:85px;cursor:pointer;display:flex;height:50px;justify-content:center;position:fixed;right:calc(50vw - 675px);width:50px;z-index:10}@media screen and (max-width:1360px){.right-returnTop[data-v-64182b0b]{right:0!important}}

View File

@@ -1 +0,0 @@
.box[data-v-d6d3d6e0]{background-color:#fff;border-radius:8px;cursor:pointer;margin-bottom:20px;padding:20px 0 25px 20px;width:385px}.box:hover .content .text-box[data-v-d6d3d6e0]{background:#72db86}.box:hover .content .text-box .text[data-v-d6d3d6e0],.box:hover .content .text-box .time[data-v-d6d3d6e0]{color:#fff}.box:hover .content .text-box .time .time-icon.time-black-icon[data-v-d6d3d6e0]{display:none}.box:hover .content .text-box .time .time-icon.time-white-icon[data-v-d6d3d6e0]{display:block}.box .img[data-v-d6d3d6e0]{height:26px;margin-right:10px;width:26px}.box .content[data-v-d6d3d6e0]{flex-direction:column}.box .content .name[data-v-d6d3d6e0]{color:#000;font-size:16px;font-weight:650;margin-bottom:16px;margin-top:2px;padding-right:10px;word-break:break-all}.box .content .list[data-v-d6d3d6e0]{flex-direction:column;margin-bottom:14px}.box .content .list .item[data-v-d6d3d6e0]:not(:last-of-type){margin-bottom:8px}.box .content .list .item .item-name[data-v-d6d3d6e0]{color:#7f7f7f;font-size:13px;line-height:20px;margin-right:12.5px}.box .content .list .item .item-value[data-v-d6d3d6e0]{color:#333;font-size:14px;width:242px}.box .content .text-box[data-v-d6d3d6e0]{background:#f2f2f2;border:1px solid #f6f6f6;border-radius:10px;margin-bottom:11px;margin-right:19px;padding:12px;transition:all .3s}.box .content .text-box .text[data-v-d6d3d6e0]{color:#333;display:-webkit-box;font-size:13px;line-height:24px;margin-bottom:12px;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.box .content .text-box .time[data-v-d6d3d6e0]{color:#aaa;font-size:13px}.box .content .text-box .time .time-icon[data-v-d6d3d6e0]{height:20px;margin-right:6px;width:20px}.box .content .text-box .time .time-icon.time-black-icon[data-v-d6d3d6e0]{display:block}.box .content .text-box .time .time-icon.time-white-icon[data-v-d6d3d6e0]{display:none}.box .content .data-list[data-v-d6d3d6e0]{color:#aaa;font-size:12px;justify-content:flex-end;margin-right:19px}.box .content .data-list .data-item[data-v-d6d3d6e0]{margin-left:26px}.box .content .data-list .data-item .data-item-icon[data-v-d6d3d6e0]{margin-right:5px;width:13px}.search-result[data-v-64182b0b]{margin:0 auto 30px;width:1200px}.search-result .keyword[data-v-64182b0b]{color:#fa6b11;cursor:pointer;font-size:14px}.search-result .keyword .keyword-icon[data-v-64182b0b]{height:14px;margin-left:9px;width:14px}.search-result .halving-line[data-v-64182b0b]{background:#d7d7d7;height:13px;margin:0 20px;width:1px}.search-result .total[data-v-64182b0b]{color:#7f7f7f;font-size:13px}.content[data-v-64182b0b]{align-items:flex-start;display:flex;flex-wrap:wrap;margin:0 auto 93px;min-height:calc(100vh - 250px);width:1200px}.content .empty-box[data-v-64182b0b]{background-color:#fff;border-radius:16px;height:540px;width:1200px}.in-end[data-v-64182b0b]{color:#7f7f7f;font-size:12px;margin-bottom:88px;text-align:center}.right-returnTop[data-v-64182b0b]{align-items:center;background-color:#323232;border-radius:50%;bottom:85px;cursor:pointer;display:flex;height:50px;justify-content:center;position:fixed;right:calc(50vw - 675px);width:50px;z-index:10}@media screen and (max-width:1360px){.right-returnTop[data-v-64182b0b]{right:0!important}}

View File

@@ -1 +1 @@
import{aW as n,aX as s,aY as r,D as o,aZ as i}from"./B9UwQxCB.js";function u(a){var t;const e=a||s();return((t=e==null?void 0:e.ssrContext)==null?void 0:t.head)||(e==null?void 0:e.runWithContext(()=>{if(r())return o(i)}))}function d(a,e={}){const t=u(e.nuxt);if(t)return n(a,{head:t,...e})}export{d as u};
import{aW as n,aX as s,aY as r,D as o,aZ as i}from"./C9zm8FQY.js";function u(a){var t;const e=a||s();return((t=e==null?void 0:e.ssrContext)==null?void 0:t.head)||(e==null?void 0:e.runWithContext(()=>{if(r())return o(i)}))}function d(a,e={}){const t=u(e.nuxt);if(t)return n(a,{head:t,...e})}export{d as u};