fix: 修复了一些 bug

This commit is contained in:
anghunk
2026-02-25 09:37:41 +08:00
parent eed0d60359
commit 607d36ead1
5 changed files with 8 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "cwd-admin", "name": "cwd-admin",
"version": "0.1.6", "version": "0.1.7",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",

View File

@@ -91,10 +91,10 @@
</div> </div>
<div class="table-cell table-cell-path"> <div class="table-cell table-cell-path">
<a <a
:href="item.postSlug" :href="item.postUrl ?? undefined"
target="_blank" target="_blank"
class="cell-path" class="cell-path"
:title="item.postSlug" :title="item.postUrl ?? undefined"
> >
{{ item.postUrl || item.postSlug }} {{ item.postUrl || item.postSlug }}
</a> </a>
@@ -502,7 +502,7 @@ async function submitEdit() {
name: trimmedName, name: trimmedName,
email: trimmedEmail, email: trimmedEmail,
url: trimmedUrl || null, url: trimmedUrl || null,
postUrl: trimmedPostUrl || null, postUrl: trimmedPostUrl,
postSlug: newPostSlug, postSlug: newPostSlug,
contentText: trimmedContent, contentText: trimmedContent,
status: current.status, status: current.status,
@@ -515,7 +515,7 @@ async function submitEdit() {
email: trimmedEmail, email: trimmedEmail,
url: trimmedUrl || null, url: trimmedUrl || null,
postSlug: newPostSlug, postSlug: newPostSlug,
postUrl: trimmedPostUrl || null, postUrl: trimmedPostUrl,
contentText: trimmedContent, contentText: trimmedContent,
status: current.status, status: current.status,
priority: priorityValue, priority: priorityValue,

View File

@@ -1,6 +1,6 @@
{ {
"name": "cwd-api", "name": "cwd-api",
"version": "0.1.6", "version": "0.1.7",
"scripts": { "scripts": {
"deploy": "node scripts/index.js && wrangler deploy", "deploy": "node scripts/index.js && wrangler deploy",
"dev": "wrangler dev", "dev": "wrangler dev",

View File

@@ -1,6 +1,6 @@
{ {
"name": "cwd-widget", "name": "cwd-widget",
"version": "0.1.6", "version": "0.1.7",
"description": "Server-free, extremely fast and secure, plug-and-play commenting system based on Cloudflare Workers and the Global Edge Network.", "description": "Server-free, extremely fast and secure, plug-and-play commenting system based on Cloudflare Workers and the Global Edge Network.",
"type": "module", "type": "module",
"author": "anghunk", "author": "anghunk",

View File

@@ -1,6 +1,6 @@
{ {
"name": "cwd", "name": "cwd",
"version": "0.1.6", "version": "0.1.7",
"license": "Apache-2.0", "license": "Apache-2.0",
"repository": { "repository": {
"type": "git", "type": "git",