默认给个匿名用户
This commit is contained in:
@@ -138,7 +138,7 @@ const client_manifest = {
|
||||
"prefetch": true,
|
||||
"preload": true,
|
||||
"css": [],
|
||||
"file": "error-404.8263ed35.js",
|
||||
"file": "error-404.df433d6b.js",
|
||||
"imports": [
|
||||
"node_modules/nuxt/dist/app/entry.js"
|
||||
],
|
||||
@@ -164,7 +164,7 @@ const client_manifest = {
|
||||
"prefetch": true,
|
||||
"preload": true,
|
||||
"css": [],
|
||||
"file": "error-500.7d50cdd4.js",
|
||||
"file": "error-500.1ca3971c.js",
|
||||
"imports": [
|
||||
"node_modules/nuxt/dist/app/entry.js"
|
||||
],
|
||||
@@ -216,7 +216,7 @@ const client_manifest = {
|
||||
"node_modules/@nuxt/ui-templates/dist/templates/error-404.vue",
|
||||
"node_modules/@nuxt/ui-templates/dist/templates/error-500.vue"
|
||||
],
|
||||
"file": "entry.0eecaf5f.js",
|
||||
"file": "entry.1dbf8890.js",
|
||||
"isEntry": true,
|
||||
"src": "node_modules/nuxt/dist/app/entry.js",
|
||||
"_globalCSS": true
|
||||
|
@@ -1174,7 +1174,7 @@ const _sfc_main$3 = {
|
||||
_push(`<!--]--></div></div><div class="item flexacenter"><input class="file" type="file" accept=".png, .jpg, .jpeg"><img class="icon"${ssrRenderAttr("src", _imports_2$1)} alt=""><span class="file-hint">最多可上传1张图片,支持在输入框中直接粘贴图片。</span></div></div><div class="btn">发送</div></div></div><div class="comments-box"><!--[-->`);
|
||||
ssrRenderList(unref(commentList), (item, index) => {
|
||||
var _a, _b, _c, _d;
|
||||
_push(`<div class="comments-item"><div class="comments-header flexacenter"><div class="comments-header-left flexacenter"><img class="comments-avatar"${ssrRenderAttr("src", item["avatar"])}><div class="comments-username">${ssrInterpolate(item["nickname"])}</div><div class="comments-time">${ssrInterpolate(unref(handleDate)(item["timestamp"]))}</div>`);
|
||||
_push(`<div class="comments-item"><div class="comments-header flexacenter"><div class="comments-header-left flexacenter"><img class="comments-avatar"${ssrRenderAttr("src", item["avatar"])}><div class="comments-username">${ssrInterpolate(item["nickname"] || "匿名用户")}</div><div class="comments-time">${ssrInterpolate(unref(handleDate)(item["timestamp"]))}</div>`);
|
||||
if (item["isauthor"] == 1) {
|
||||
_push(`<div class="comments-identity">提问者</div>`);
|
||||
} else {
|
||||
@@ -1217,7 +1217,7 @@ const _sfc_main$3 = {
|
||||
_push(`<div class="child-comments"><!--[-->`);
|
||||
ssrRenderList(item["child"], (ite, i) => {
|
||||
var _a2, _b2, _c2, _d2, _e;
|
||||
_push(`<div class="comments-item"><div class="comments-header flexacenter"><div class="comments-header-left flexacenter"><img class="comments-avatar"${ssrRenderAttr("src", ite["avatar"])}><div class="comments-username">${ssrInterpolate(ite["nickname"])}</div><div class="comments-time">${ssrInterpolate(unref(handleDate)(ite["timestamp"]))}</div>`);
|
||||
_push(`<div class="comments-item"><div class="comments-header flexacenter"><div class="comments-header-left flexacenter"><img class="comments-avatar"${ssrRenderAttr("src", ite["avatar"])}><div class="comments-username">${ssrInterpolate(ite["nickname"] || "匿名用户")}</div><div class="comments-time">${ssrInterpolate(unref(handleDate)(ite["timestamp"]))}</div>`);
|
||||
if (ite["isauthor"] == 1) {
|
||||
_push(`<div class="comments-identity">提问者</div>`);
|
||||
} else {
|
||||
@@ -1236,7 +1236,7 @@ const _sfc_main$3 = {
|
||||
}
|
||||
_push(`<div class="like-quantity">${ssrInterpolate(ite["likenum"] || "")}</div></div></div></div><div class="comments-content"><div class="comments-text">`);
|
||||
if ((_a2 = ite == null ? void 0 : ite.reply) == null ? void 0 : _a2.nickname) {
|
||||
_push(`<div class="comments-reply">@${ssrInterpolate(ite["reply"]["nickname"])}</div>`);
|
||||
_push(`<div class="comments-reply">@${ssrInterpolate(ite["reply"]["nickname"] || "匿名用户")}</div>`);
|
||||
} else {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
@@ -1247,7 +1247,7 @@ const _sfc_main$3 = {
|
||||
_push(`<!---->`);
|
||||
}
|
||||
if (ite["childState"]) {
|
||||
_push(`<div class="input-box"><img class="cross"${ssrRenderAttr("src", _imports_11)}><div class="top flexflex"><textarea class="input-textarea flex1" maxlength="500"${ssrRenderAttr("placeholder", "回复“" + ite["nickname"] + "”:")}>${ssrInterpolate(ite["commentInput"])}</textarea></div>`);
|
||||
_push(`<div class="input-box"><img class="cross"${ssrRenderAttr("src", _imports_11)}><div class="top flexflex"><textarea class="input-textarea flex1" maxlength="500"${ssrRenderAttr("placeholder", "回复“" + (ite["nickname"] || "匿名用户") + "”:")}>${ssrInterpolate(ite["commentInput"])}</textarea></div>`);
|
||||
if ((_e = ite.picture) == null ? void 0 : _e.url) {
|
||||
_push(`<div class="picture-box"><div class="picture"><img class="close"${ssrRenderAttr("src", _imports_0$1)}><img class="img"${ssrRenderAttr("src", ite.picture.base64 || ite.picture.url)}></div></div>`);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user