1.4.8-Fix

This commit is contained in:
RachelOS
2025-12-17 12:02:36 +08:00
parent d5c8461648
commit d04c568cbc
25 changed files with 119 additions and 115 deletions
-1
View File
@@ -198,4 +198,3 @@ The following are the environment variable configurations supported in `config.y
| `LOG_FILE` | Empty | Log file path |
| `LOG_LEVEL` | `INFO` | Log level |
| `EXPORT_PDF` | `False` | Whether to enable PDF export functionality |
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
import{y as q,_ as G,d as O,z as P,A as L,r as m,k as W,b as x,e as C,c as u,u as A,w as t,F as H,n as K,M as r,j as s,o as b,m as Q,p as E,B as X}from"./index.c9295218.js";import{g as Y,u as Z,c as ee}from"./tagManagement.46bbc880.js";const ue=w=>{const i=new FormData;return i.append("file",w),q.post("/wx/user/upload",i,{headers:{"Content-Type":"multipart/form-data"}})};const ae={class:"tag-form"},te={class:"cover-upload"},oe=["src"],le={class:"upload-mask"},se=O({__name:"TagForm",setup(w){const i=P(),g=L(),c=m(!1),B=m(!1),y=m(!1),a=m({name:"",cover:null,intro:null,status:1,mps_id:[]}),V={name:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u7B7E\u540D\u79F0"}]},S=async l=>{try{B.value=!0;const e=await Y(l);a.value={...e,mps_id:JSON.parse(e.mps_id||[])},K(()=>{D.value&&D.value.parseSelected(a.value.mps_id)})}catch{r.error("\u83B7\u53D6\u6807\u7B7E\u8BE6\u60C5\u5931\u8D25")}finally{B.value=!1}},T=async l=>{var f,p,n,v;const e=((f=l.fileItem)==null?void 0:f.file)||l.file;if(!((p=e==null?void 0:e.type)!=null&&p.startsWith("image/"))){r.error("\u8BF7\u9009\u62E9\u56FE\u7247\u6587\u4EF6 (JPEG/PNG)");return}if(e.size>2*1024*1024){r.error("\u56FE\u7247\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72MB");return}try{const d=await ue(e);console.log(d),a.value.cover=d.url}catch(d){console.error("\u4E0A\u4F20\u9519\u8BEF:",d),r.error(`\u4E0A\u4F20\u5931\u8D25: ${((v=(n=d.response)==null?void 0:n.data)==null?void 0:v.message)||d.message||"\u670D\u52A1\u5668\u9519\u8BEF"}`)}return!1},h=()=>{r.warning("\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u5C01\u9762\u6587\u4EF6")},M=l=>{r.error(`\u4E0A\u4F20\u51FA\u9519: ${l.message||"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"}`)},_=m(!1),D=m(null),U=l=>{const e=l.target;e.src="/default-cover.png"},N=async()=>{try{y.value=!0;const l={...a.value,mps_id:JSON.stringify(a.value.mps_id)};c.value?(await Z(i.params.id,l),r.success("\u66F4\u65B0\u6210\u529F")):(await ee(l),r.success("\u521B\u5EFA\u6210\u529F")),g.push("/tags")}catch{r.error(c.value?"\u66F4\u65B0\u5931\u8D25":"\u521B\u5EFA\u5931\u8D25")}finally{y.value=!1}};return W(()=>{i.params.id&&(c.value=!0,S(i.params.id))}),(l,e)=>{const f=s("a-page-header"),p=s("a-input"),n=s("a-form-item"),v=s("icon-image"),d=s("icon-edit"),$=s("a-upload"),R=s("a-textarea"),z=s("a-switch"),F=s("a-button"),k=s("a-space"),I=s("a-form"),J=s("a-card"),j=s("a-modal");return b(),x(H,null,[C("div",ae,[u(f,{title:c.value?"\u7F16\u8F91\u6807\u7B7E":"\u6DFB\u52A0\u6807\u7B7E",subtitle:"\u6807\u7B7E\u4FE1\u606F",onBack:e[0]||(e[0]=o=>A(g).go(-1))},null,8,["title"]),u(J,{loading:B.value},{default:t(()=>[u(I,{model:a.value,rules:V,layout:"vertical",onSubmit:N},{default:t(()=>[u(n,{label:"\u6807\u7B7E\u540D\u79F0",field:"name"},{default:t(()=>[u(p,{modelValue:a.value.name,"onUpdate:modelValue":e[1]||(e[1]=o=>a.value.name=o),placeholder:"\u8BF7\u8F93\u5165\u6807\u7B7E\u540D\u79F0"},null,8,["modelValue"])]),_:1}),u(n,{label:"\u5C01\u9762\u56FE",field:"cover"},{default:t(()=>[u($,{"custom-request":T,"show-file-list":!1,accept:"image/*",limit:1,"max-size":2048,onExceed:h,onError:M},{"upload-button":t(()=>[C("div",te,[a.value.cover?(b(),x("img",{key:0,src:a.value.cover,alt:"cover",onError:U},null,40,oe)):(b(),Q(v,{key:1})),C("div",le,[u(d)])])]),_:1})]),_:1}),u(n,{label:"\u7B80\u4ECB",field:"intro"},{default:t(()=>[u(R,{modelValue:a.value.intro,"onUpdate:modelValue":e[2]||(e[2]=o=>a.value.intro=o),placeholder:"\u8BF7\u8F93\u5165\u6807\u7B7E\u7B80\u4ECB","auto-size":{minRows:3}},null,8,["modelValue"])]),_:1}),u(n,{label:"\u72B6\u6001",field:"status"},{default:t(()=>[u(z,{modelValue:a.value.status,"onUpdate:modelValue":e[3]||(e[3]=o=>a.value.status=o),"checked-value":1,"unchecked-value":0},null,8,["modelValue"])]),_:1}),u(n,{label:"\u516C\u4F17\u53F7",field:"mps_id"},{default:t(()=>[u(k,null,{default:t(()=>[u(p,{"model-value":(a.value.mps_id||[]).map(o=>o.id.toString()).join(","),placeholder:"\u8BF7\u9009\u62E9\u516C\u4F17\u53F7",readonly:"",style:{width:"300px"}},null,8,["model-value"]),u(F,{onClick:e[4]||(e[4]=o=>_.value=!0)},{default:t(()=>e[9]||(e[9]=[E("\u9009\u62E9")])),_:1,__:[9]})]),_:1})]),_:1}),u(n,null,{default:t(()=>[u(k,null,{default:t(()=>[u(F,{type:"primary","html-type":"submit",loading:y.value},{default:t(()=>e[10]||(e[10]=[E(" \u63D0\u4EA4 ")])),_:1,__:[10]},8,["loading"]),u(F,{onClick:e[5]||(e[5]=o=>A(g).go(-1))},{default:t(()=>e[11]||(e[11]=[E("\u53D6\u6D88")])),_:1,__:[11]})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["loading"])]),u(j,{visible:_.value,"onUpdate:visible":e[8]||(e[8]=o=>_.value=o),title:"\u9009\u62E9\u516C\u4F17\u53F7",footer:!1,width:"800px"},{footer:t(()=>[u(F,{type:"primary",onClick:e[7]||(e[7]=o=>_.value=!1)},{default:t(()=>e[12]||(e[12]=[E("\u786E\u5B9A")])),_:1,__:[12]})]),default:t(()=>[u(X,{ref_key:"mpSelectorRef",ref:D,modelValue:a.value.mps_id,"onUpdate:modelValue":e[6]||(e[6]=o=>a.value.mps_id=o)},null,8,["modelValue"])]),_:1},8,["visible"])],64)}}});var de=G(se,[["__scopeId","data-v-88a0646e"]]);export{de as default};
import{y as q,_ as G,d as O,z as P,A as L,r as m,k as W,b as x,e as C,c as u,u as A,w as t,F as H,n as K,M as r,j as s,o as b,m as Q,p as E,B as X}from"./index.561aaaff.js";import{g as Y,u as Z,c as ee}from"./tagManagement.25f4ec7b.js";const ue=w=>{const i=new FormData;return i.append("file",w),q.post("/wx/user/upload",i,{headers:{"Content-Type":"multipart/form-data"}})};const ae={class:"tag-form"},te={class:"cover-upload"},oe=["src"],le={class:"upload-mask"},se=O({__name:"TagForm",setup(w){const i=P(),g=L(),c=m(!1),B=m(!1),y=m(!1),a=m({name:"",cover:null,intro:null,status:1,mps_id:[]}),V={name:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u7B7E\u540D\u79F0"}]},S=async l=>{try{B.value=!0;const e=await Y(l);a.value={...e,mps_id:JSON.parse(e.mps_id||[])},K(()=>{D.value&&D.value.parseSelected(a.value.mps_id)})}catch{r.error("\u83B7\u53D6\u6807\u7B7E\u8BE6\u60C5\u5931\u8D25")}finally{B.value=!1}},T=async l=>{var f,p,n,v;const e=((f=l.fileItem)==null?void 0:f.file)||l.file;if(!((p=e==null?void 0:e.type)!=null&&p.startsWith("image/"))){r.error("\u8BF7\u9009\u62E9\u56FE\u7247\u6587\u4EF6 (JPEG/PNG)");return}if(e.size>2*1024*1024){r.error("\u56FE\u7247\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72MB");return}try{const d=await ue(e);console.log(d),a.value.cover=d.url}catch(d){console.error("\u4E0A\u4F20\u9519\u8BEF:",d),r.error(`\u4E0A\u4F20\u5931\u8D25: ${((v=(n=d.response)==null?void 0:n.data)==null?void 0:v.message)||d.message||"\u670D\u52A1\u5668\u9519\u8BEF"}`)}return!1},h=()=>{r.warning("\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u5C01\u9762\u6587\u4EF6")},M=l=>{r.error(`\u4E0A\u4F20\u51FA\u9519: ${l.message||"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"}`)},_=m(!1),D=m(null),U=l=>{const e=l.target;e.src="/default-cover.png"},N=async()=>{try{y.value=!0;const l={...a.value,mps_id:JSON.stringify(a.value.mps_id)};c.value?(await Z(i.params.id,l),r.success("\u66F4\u65B0\u6210\u529F")):(await ee(l),r.success("\u521B\u5EFA\u6210\u529F")),g.push("/tags")}catch{r.error(c.value?"\u66F4\u65B0\u5931\u8D25":"\u521B\u5EFA\u5931\u8D25")}finally{y.value=!1}};return W(()=>{i.params.id&&(c.value=!0,S(i.params.id))}),(l,e)=>{const f=s("a-page-header"),p=s("a-input"),n=s("a-form-item"),v=s("icon-image"),d=s("icon-edit"),$=s("a-upload"),R=s("a-textarea"),z=s("a-switch"),F=s("a-button"),k=s("a-space"),I=s("a-form"),J=s("a-card"),j=s("a-modal");return b(),x(H,null,[C("div",ae,[u(f,{title:c.value?"\u7F16\u8F91\u6807\u7B7E":"\u6DFB\u52A0\u6807\u7B7E",subtitle:"\u6807\u7B7E\u4FE1\u606F",onBack:e[0]||(e[0]=o=>A(g).go(-1))},null,8,["title"]),u(J,{loading:B.value},{default:t(()=>[u(I,{model:a.value,rules:V,layout:"vertical",onSubmit:N},{default:t(()=>[u(n,{label:"\u6807\u7B7E\u540D\u79F0",field:"name"},{default:t(()=>[u(p,{modelValue:a.value.name,"onUpdate:modelValue":e[1]||(e[1]=o=>a.value.name=o),placeholder:"\u8BF7\u8F93\u5165\u6807\u7B7E\u540D\u79F0"},null,8,["modelValue"])]),_:1}),u(n,{label:"\u5C01\u9762\u56FE",field:"cover"},{default:t(()=>[u($,{"custom-request":T,"show-file-list":!1,accept:"image/*",limit:1,"max-size":2048,onExceed:h,onError:M},{"upload-button":t(()=>[C("div",te,[a.value.cover?(b(),x("img",{key:0,src:a.value.cover,alt:"cover",onError:U},null,40,oe)):(b(),Q(v,{key:1})),C("div",le,[u(d)])])]),_:1})]),_:1}),u(n,{label:"\u7B80\u4ECB",field:"intro"},{default:t(()=>[u(R,{modelValue:a.value.intro,"onUpdate:modelValue":e[2]||(e[2]=o=>a.value.intro=o),placeholder:"\u8BF7\u8F93\u5165\u6807\u7B7E\u7B80\u4ECB","auto-size":{minRows:3}},null,8,["modelValue"])]),_:1}),u(n,{label:"\u72B6\u6001",field:"status"},{default:t(()=>[u(z,{modelValue:a.value.status,"onUpdate:modelValue":e[3]||(e[3]=o=>a.value.status=o),"checked-value":1,"unchecked-value":0},null,8,["modelValue"])]),_:1}),u(n,{label:"\u516C\u4F17\u53F7",field:"mps_id"},{default:t(()=>[u(k,null,{default:t(()=>[u(p,{"model-value":(a.value.mps_id||[]).map(o=>o.id.toString()).join(","),placeholder:"\u8BF7\u9009\u62E9\u516C\u4F17\u53F7",readonly:"",style:{width:"300px"}},null,8,["model-value"]),u(F,{onClick:e[4]||(e[4]=o=>_.value=!0)},{default:t(()=>e[9]||(e[9]=[E("\u9009\u62E9")])),_:1,__:[9]})]),_:1})]),_:1}),u(n,null,{default:t(()=>[u(k,null,{default:t(()=>[u(F,{type:"primary","html-type":"submit",loading:y.value},{default:t(()=>e[10]||(e[10]=[E(" \u63D0\u4EA4 ")])),_:1,__:[10]},8,["loading"]),u(F,{onClick:e[5]||(e[5]=o=>A(g).go(-1))},{default:t(()=>e[11]||(e[11]=[E("\u53D6\u6D88")])),_:1,__:[11]})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["loading"])]),u(j,{visible:_.value,"onUpdate:visible":e[8]||(e[8]=o=>_.value=o),title:"\u9009\u62E9\u516C\u4F17\u53F7",footer:!1,width:"800px"},{footer:t(()=>[u(F,{type:"primary",onClick:e[7]||(e[7]=o=>_.value=!1)},{default:t(()=>e[12]||(e[12]=[E("\u786E\u5B9A")])),_:1,__:[12]})]),default:t(()=>[u(X,{ref_key:"mpSelectorRef",ref:D,modelValue:a.value.mps_id,"onUpdate:modelValue":e[6]||(e[6]=o=>a.value.mps_id=o)},null,8,["modelValue"])]),_:1},8,["visible"])],64)}}});var de=G(se,[["__scopeId","data-v-88a0646e"]]);export{de as default};
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
import{C as rt}from"./index.c9295218.js";/*!-----------------------------------------------------------------------------
import{C as rt}from"./index.561aaaff.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
@@ -1,4 +1,4 @@
import{C as F}from"./index.c9295218.js";/*!-----------------------------------------------------------------------------
import{C as F}from"./index.561aaaff.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
@@ -1,4 +1,4 @@
import{C as i}from"./index.c9295218.js";/*!-----------------------------------------------------------------------------
import{C as i}from"./index.561aaaff.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
@@ -1,4 +1,4 @@
import{C as d}from"./index.c9295218.js";/*!-----------------------------------------------------------------------------
import{C as d}from"./index.561aaaff.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
@@ -1,4 +1,4 @@
import{C as gt}from"./index.c9295218.js";/*!-----------------------------------------------------------------------------
import{C as gt}from"./index.561aaaff.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
import{conf as t,language as e}from"./typescript.44804f2c.js";import"./index.c9295218.js";/*!-----------------------------------------------------------------------------
import{conf as t,language as e}from"./typescript.788663b3.js";import"./index.561aaaff.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
@@ -1,4 +1,4 @@
import{C as Ot}from"./index.c9295218.js";/*!-----------------------------------------------------------------------------
import{C as Ot}from"./index.561aaaff.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
@@ -1,4 +1,4 @@
import{C as d}from"./index.c9295218.js";/*!-----------------------------------------------------------------------------
import{C as d}from"./index.561aaaff.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
@@ -1,4 +1,4 @@
import{C as d}from"./index.c9295218.js";/*!-----------------------------------------------------------------------------
import{C as d}from"./index.561aaaff.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
@@ -1,4 +1,4 @@
import{C as a}from"./index.c9295218.js";/*!-----------------------------------------------------------------------------
import{C as a}from"./index.561aaaff.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
@@ -1,4 +1,4 @@
import{C as s}from"./index.c9295218.js";/*!-----------------------------------------------------------------------------
import{C as s}from"./index.561aaaff.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
@@ -1 +1 @@
import{y as e}from"./index.c9295218.js";const o=t=>e.get("/wx/tags",{params:{offset:(t==null?void 0:t.offset)||0,limit:(t==null?void 0:t.limit)||100}}),n=t=>e.get(`/wx/tags/${t}`),u=t=>e.post("/wx/tags",t),c=(t,g)=>e.put(`/wx/tags/${t}`,g),i=t=>e.delete(`/wx/tags/${t}`);export{u as c,i as d,n as g,o as l,c as u};
import{y as e}from"./index.561aaaff.js";const o=t=>e.get("/wx/tags",{params:{offset:(t==null?void 0:t.offset)||0,limit:(t==null?void 0:t.limit)||100}}),n=t=>e.get(`/wx/tags/${t}`),u=t=>e.post("/wx/tags",t),c=(t,g)=>e.put(`/wx/tags/${t}`,g),i=t=>e.delete(`/wx/tags/${t}`);export{u as c,i as d,n as g,o as l,c as u};
@@ -1,4 +1,4 @@
import{D as M,C as N}from"./index.c9295218.js";/*!-----------------------------------------------------------------------------
import{D as M,C as N}from"./index.561aaaff.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
@@ -1,4 +1,4 @@
import{C as a}from"./index.c9295218.js";/*!-----------------------------------------------------------------------------
import{C as a}from"./index.561aaaff.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
@@ -1,4 +1,4 @@
import{C as c}from"./index.c9295218.js";/*!-----------------------------------------------------------------------------
import{C as c}from"./index.561aaaff.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
@@ -1,4 +1,4 @@
import{C as i}from"./index.c9295218.js";/*!-----------------------------------------------------------------------------
import{C as i}from"./index.561aaaff.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.54.0(7c2310116c57517348bbd868a21139f32454be22)
* Released under the MIT license
+2 -2
View File
@@ -15,8 +15,8 @@
<meta name="author" content="Rachel" />
<script src="https://hm.baidu.com/hm.js?975de8724ac02eb7e6d2357bb95c067d"></script>
<title>WeRss微信公众号订阅助手</title>
<script type="module" crossorigin src="/assets/index.c9295218.js"></script>
<link rel="stylesheet" href="/assets/index.d6b188d6.css">
<script type="module" crossorigin src="/assets/index.561aaaff.js"></script>
<link rel="stylesheet" href="/assets/index.76407890.css">
</head>
<body>
+2 -2
View File
@@ -15,8 +15,8 @@
<meta name="author" content="Rachel" />
<script src="https://hm.baidu.com/hm.js?975de8724ac02eb7e6d2357bb95c067d"></script>
<title>WeRss微信公众号订阅助手</title>
<script type="module" crossorigin src="/assets/index.c9295218.js"></script>
<link rel="stylesheet" href="/assets/index.d6b188d6.css">
<script type="module" crossorigin src="/assets/index.561aaaff.js"></script>
<link rel="stylesheet" href="/assets/index.76407890.css">
</head>
<body>
+7 -2
View File
@@ -185,6 +185,8 @@
<div style="text-align: center;">
<p>如果您觉得这个项目对您有帮助,请给Rachel来一杯Coffee吧~ </p>
<img src="@/assets/images/sponsor.jpg" alt="赞赏码" style="max-width: 300px; margin-top: 20px;">
<p>您打赏的金额将用于维护项目的运行成本感谢您的支持</p>
<p>打赏后可以发送单号到<a href="mailto:rachelos@qq.com">rachelos@qq.com</a></p>
</div>
</a-modal>
</div>
@@ -214,11 +216,13 @@ const handleLanguageChange = (language: string) => {
setCurrentLanguage(language);
currentLanguage.value = language;
};
const sponsorVisible = ref(false)
const sponsorCount:number = parseInt(localStorage.getItem('sponsor'))|| 0
localStorage.setItem('sponsor', (sponsorCount+1).toString())
const sponsorVisible = ref(sponsorCount<3)
const showSponsorModal = (e: Event) => {
e.preventDefault()
sponsorVisible.value = true
localStorage.setItem('sponsor',"0")
console.log('Sponsor modal triggered') // 添加调试日志
}
import {
@@ -296,6 +300,7 @@ const handleLogout = async () => {
}
onMounted(() => {
if (isAuthenticated.value) {
fetchUserInfo()
}