修改转发url

This commit is contained in:
A1300399510
2023-12-21 11:39:15 +08:00
parent b38c6ed28a
commit 913a8c5bdd
20 changed files with 190 additions and 259 deletions

View File

@@ -159,7 +159,7 @@ const client_manifest = {
"prefetch": true,
"preload": true,
"css": [],
"file": "error-404.809b08a3.js",
"file": "error-404.e9a929be.js",
"imports": [
"node_modules/nuxt/dist/app/entry.js"
],
@@ -185,7 +185,7 @@ const client_manifest = {
"prefetch": true,
"preload": true,
"css": [],
"file": "error-500.b5287091.js",
"file": "error-500.ec9a7266.js",
"imports": [
"node_modules/nuxt/dist/app/entry.js"
],
@@ -202,7 +202,7 @@ const client_manifest = {
"resourceType": "style",
"prefetch": true,
"preload": true,
"file": "entry.7f5ece9e.css",
"file": "entry.3714ddae.css",
"src": "node_modules/nuxt/dist/app/entry.css"
},
"node_modules/nuxt/dist/app/entry.js": {
@@ -234,19 +234,19 @@ const client_manifest = {
"triangle-icon.c39ff2e7.svg"
],
"css": [
"entry.7f5ece9e.css"
"entry.3714ddae.css"
],
"dynamicImports": [
"node_modules/@nuxt/ui-templates/dist/templates/error-404.vue",
"node_modules/@nuxt/ui-templates/dist/templates/error-500.vue"
],
"file": "entry.b40c895b.js",
"file": "entry.74e41ae6.js",
"isEntry": true,
"src": "node_modules/nuxt/dist/app/entry.js",
"_globalCSS": true
},
"entry.7f5ece9e.css": {
"file": "entry.7f5ece9e.css",
"entry.3714ddae.css": {
"file": "entry.3714ddae.css",
"resourceType": "style",
"prefetch": true,
"preload": true

View File

@@ -1083,12 +1083,8 @@ const _sfc_main$2 = {
emulateJSON: true,
withCredentials: true,
headers: {
// authorization: "production" !== "production" && "9c92af854f552bbd2aab43230bcf8438", // 头部标记
authorization: "production" !== "production"
// 头部标记 ada
// authorization: "2e25ccc21d5f86b670e7476f3b58ea5d", // 头部标记
// "Cache-Control": "no-cache",
// Pragma: "no-cache",
}
}).then(function(res) {
var data2 = null;
@@ -1117,8 +1113,6 @@ const _sfc_main$2 = {
headers: {
authorization: "production" !== "production"
// 头部标记
// "Cache-Control": "no-cache",
// Pragma: "no-cache",
}
}).then(function(res) {
var data2 = null;
@@ -1151,7 +1145,9 @@ const _sfc_main$2 = {
window.removeEventListener("scroll", handleScroll);
});
const getCurrentUrl = () => {
return window.location.href;
const params = route.query;
let url = `${window.location["origin"]}?uniqid=${params["uniqid"]}`;
return url;
};
let myCount = ref({});
const getUserData = (key) => {
@@ -1180,9 +1176,11 @@ const _sfc_main$2 = {
page = 1;
list.value = [];
backupsList = [];
listHeight.value = 0;
type.value = "list";
openBottom();
pitchIndex.value = null;
openBottom();
myModelState.value = false;
replaceState({
keyword: keyword.value
});
@@ -1206,6 +1204,7 @@ const _sfc_main$2 = {
page = 1;
list.value = [];
backupsList = [];
listHeight.value = 0;
type.value = "list";
openBottom();
pitchIndex.value = null;
@@ -1253,6 +1252,7 @@ const _sfc_main$2 = {
let data = res.data;
data.data.forEach((element) => {
element["content"] = element["content"].replace(/<[^>]*>/g, "");
element["content"] = element["content"].replace(/&nbsp;/g, "");
});
list.value = list.value.concat(data.data || []);
backupsList = backupsList.concat(data.data || []);
@@ -1355,6 +1355,8 @@ const _sfc_main$2 = {
let content = "";
if (info["content"].indexOf("<img") == -1)
content = info["content"];
content = content.replace(/<[^>]*>/g, "");
content = content.replace(/&nbsp;/g, "");
const obj = {
answers: info["answers"],
content,
@@ -1554,7 +1556,6 @@ const _sfc_main$2 = {
return new Promise((resolve, reject) => {
$ajax("/api/comment/lists", {
token: answerList.value[index]["token"],
// limit: answerCommentLimit,
limit,
childlimit: 1
}).then((res) => {
@@ -1602,9 +1603,7 @@ const _sfc_main$2 = {
...data
};
targetAnswerList[index]["commentList"][ind]["child"][i]["commentInput"] = "";
targetAnswerList[index]["commentList"][ind]["child"].unshift(
targetData
);
targetAnswerList[index]["commentList"][ind]["child"].unshift(targetData);
targetAnswerList[index]["commentList"][ind]["childnum"]++;
} else if (ind != null) {
let targetData = {
@@ -1616,9 +1615,7 @@ const _sfc_main$2 = {
reply: [],
...data
};
targetAnswerList[index]["commentList"][ind]["child"].unshift(
targetData
);
targetAnswerList[index]["commentList"][ind]["child"].unshift(targetData);
targetAnswerList[index]["commentList"][ind]["childnum"]++;
targetAnswerList[index]["commentList"][ind]["commentInput"] = "";
} else {
@@ -1706,11 +1703,7 @@ const _sfc_main$2 = {
let data = res.data;
let merged1 = [
...targetAnswerList[index]["commentList"][ind]["child"],
...data.data.filter(
(item2) => !targetAnswerList[index]["commentList"][ind]["child"].find(
(item1) => item1.id == item2.id
)
)
...data.data.filter((item2) => !targetAnswerList[index]["commentList"][ind]["child"].find((item1) => item1.id == item2.id))
];
targetAnswerList[index]["commentList"][ind]["child"] = merged1;
answerList.value = targetAnswerList;
@@ -1774,16 +1767,13 @@ const _sfc_main$2 = {
var parser = new DOMParser();
var doc = parser.parseFromString(html, "text/html");
var img = doc.querySelector("img");
if (img) {
if (img)
return `<img src="${img.src}">`;
} else {
else
return doc.body.textContent;
}
};
const cancelCollection = (token, index) => {
$ajax("/api/user/deleteCollect", {
token
}).then((res) => {
$ajax("/api/user/deleteCollect", { token }).then((res) => {
if (res.code == 200) {
myCollectionList.value.splice(index, 1);
myCollectionCount.value--;
@@ -1911,7 +1901,6 @@ const _sfc_main$2 = {
}).then((res) => {
if (res.code != 200)
return;
res.data;
myQuestionsList.value[index]["anonymous"] = anonymous;
cutQuestionsPopupState(index);
handleMsg("success", res["message"] || "操作成功");
@@ -2306,6 +2295,7 @@ const _sfc_main$2 = {
page = 1;
list.value = [];
backupsList = [];
listHeight.value = 0;
myModelState.value = false;
type.value = "list";
openBottom();
@@ -2446,6 +2436,7 @@ const _sfc_main$2 = {
let data = res.data;
data.data.forEach((element) => {
element["content"] = element["content"].replace(/<[^>]*>/g, "");
element["content"] = element["content"].replace(/&nbsp;/g, "");
});
list.value = data.data;
backupsList = data.data;
@@ -2602,6 +2593,7 @@ const _sfc_main$2 = {
page = 1;
list.value = [];
backupsList = [];
listHeight.value = 0;
getList();
};
return {
@@ -2810,7 +2802,7 @@ function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $op
});
_push(`<!--]--><!--]-->`);
});
_push(`<!--]--></div></div></header><div class="${ssrRenderClass([{ "mode-list": $setup.type == "list" }, "main flexflex"])}"><div class="list-box"><div class="main-header" style="${ssrRenderStyle({ paddingLeft: $setup.type == "list" ? 0 : "calc((100vw - 1200px) / 2)" })}">`);
_push(`<!--]--></div></div></header><div class="${ssrRenderClass([{ "mode-list": $setup.type == "list" }, "main flexflex"])}"><div class="list-box"><div class="main-header" style="${ssrRenderStyle({ paddingLeft: $setup.type == "list" ? 0 : "calc((100vw - 1200px) / 2)" })}"><div class="flexacenter">`);
if ($setup.myModelState) {
_push(`<div class="search-keyword flexacenter"><div class="ellipsis">我的收藏/提问/回答</div><img class="search-keyword-cross"${ssrRenderAttr("src", _imports_4)}></div>`);
} else if ($setup.isSearchMode) {
@@ -2818,6 +2810,7 @@ function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $op
} else {
_push(`<div class="total grid-item">共 ${ssrInterpolate($setup.total)} 条问答</div>`);
}
_push(`</div>`);
if ($setup.type != "details") {
_push(`<div class="look-only flexcenter">`);
if ($setup.zeroreply == 0) {

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
{"version":3,"file":"entry-styles.85d8410d.mjs","sources":["../../../../../.nuxt/dist/server/static/entry-styles-1.mjs-b326af70.js","../../../../../.nuxt/dist/server/static/entry-styles.85d8410d.mjs"],"sourcesContent":null,"names":["__buildAssetsURL","style_0"],"mappings":";;;;;;;;;;;;;;;;AAAA,MAAA,mCAAA,GAAA,s3MAAA,GAAAA,cAAA,CAAA,4BAAA,CAAA,GAAA,sktCAAA;;ACCA,6BAAe,CAACC,mCAAO;;;;"}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"entry-styles.e03f77a9.mjs","sources":["../../../../../.nuxt/dist/server/static/entry-styles-1.mjs-6d545420.js","../../../../../.nuxt/dist/server/static/entry-styles.e03f77a9.mjs"],"sourcesContent":null,"names":["__buildAssetsURL","style_0"],"mappings":";;;;;;;;;;;;;;;;AAAA,MAAA,mCAAA,GAAA,q5MAAA,GAAAA,cAAA,CAAA,4BAAA,CAAA,GAAA,sktCAAA;;ACCA,6BAAe,CAACC,mCAAO;;;;"}

View File

@@ -1,6 +1,6 @@
const interopDefault = r => r.default || r || [];
const styles = {
"node_modules/nuxt/dist/app/entry.js": () => import('./static/entry-styles.85d8410d.mjs').then(interopDefault),
"node_modules/nuxt/dist/app/entry.js": () => import('./static/entry-styles.e03f77a9.mjs').then(interopDefault),
"node_modules/@nuxt/ui-templates/dist/templates/error-404.vue": () => import('./static/error-404-styles.1e0dde27.mjs').then(interopDefault),
"node_modules/@nuxt/ui-templates/dist/templates/error-500.vue": () => import('./static/error-500-styles.cf4b3e80.mjs').then(interopDefault)
};

View File

@@ -3059,7 +3059,7 @@ function klona(x) {
const inlineAppConfig = {
"nuxt": {
"buildId": "984a1b37-8472-442e-90b0-902edf3ab4f7"
"buildId": "6c585092-7af7-4e50-aed3-56c838915750"
}
};
@@ -4949,205 +4949,205 @@ const assets = {
"/static/add-icon.0b0b5313.svg": {
"type": "image/svg+xml",
"etag": "\"d67-gajxuGcy6aHIeWAbO0RazX03p90\"",
"mtime": "2023-12-21T02:52:39.624Z",
"mtime": "2023-12-21T03:38:51.111Z",
"size": 3431,
"path": "../public/static/add-icon.0b0b5313.svg"
},
"/static/arrows-icon.271dd0d3.svg": {
"type": "image/svg+xml",
"etag": "\"5a0-yAit7q5lcKJMd35iOMMifZv2uno\"",
"mtime": "2023-12-21T02:52:39.626Z",
"mtime": "2023-12-21T03:38:51.112Z",
"size": 1440,
"path": "../public/static/arrows-icon.271dd0d3.svg"
},
"/static/close-icon.86743366.svg": {
"type": "image/svg+xml",
"etag": "\"2d4-QYrulZl33jopLCT37UdJfnzXOVg\"",
"mtime": "2023-12-21T02:52:39.626Z",
"mtime": "2023-12-21T03:38:51.111Z",
"size": 724,
"path": "../public/static/close-icon.86743366.svg"
},
"/static/collect-icon-colours.6d2ade7f.svg": {
"type": "image/svg+xml",
"etag": "\"7ab-av9D1DgxgD5cvY5wd30haD7c1q0\"",
"mtime": "2023-12-21T02:52:39.626Z",
"mtime": "2023-12-21T03:38:51.111Z",
"size": 1963,
"path": "../public/static/collect-icon-colours.6d2ade7f.svg"
},
"/static/comment-icon-gray.2c8779f9.svg": {
"type": "image/svg+xml",
"etag": "\"816-HEGvNjvS0TeA/3uJweilvZfCqlk\"",
"mtime": "2023-12-21T02:52:39.626Z",
"mtime": "2023-12-21T03:38:51.112Z",
"size": 2070,
"path": "../public/static/comment-icon-gray.2c8779f9.svg"
},
"/static/delete-icon.4d386dce.svg": {
"type": "image/svg+xml",
"etag": "\"17fe-RGKa0+MaUqOqlbPlXlig67fGkaY\"",
"mtime": "2023-12-21T02:52:39.626Z",
"mtime": "2023-12-21T03:38:51.112Z",
"size": 6142,
"path": "../public/static/delete-icon.4d386dce.svg"
},
"/static/dot-gray.86cdd7b5.svg": {
"type": "image/svg+xml",
"etag": "\"2af-sBMsuPZbsh28jzlFWO9lVYMVDk8\"",
"mtime": "2023-12-21T02:52:39.626Z",
"mtime": "2023-12-21T03:38:51.112Z",
"size": 687,
"path": "../public/static/dot-gray.86cdd7b5.svg"
},
"/static/dot-yellow.4b5e135b.svg": {
"type": "image/svg+xml",
"etag": "\"2af-6L7YsWhGTHBB6NqQztB/l2OFRfE\"",
"mtime": "2023-12-21T02:52:39.626Z",
"mtime": "2023-12-21T03:38:51.111Z",
"size": 687,
"path": "../public/static/dot-yellow.4b5e135b.svg"
},
"/static/dot.1026a040.svg": {
"type": "image/svg+xml",
"etag": "\"217-dx6xqUT4D9pCoKc6nr20aXeJQXQ\"",
"mtime": "2023-12-21T02:52:39.626Z",
"mtime": "2023-12-21T03:38:51.111Z",
"size": 535,
"path": "../public/static/dot.1026a040.svg"
},
"/static/edit-icon-white.29b27582.svg": {
"type": "image/svg+xml",
"etag": "\"8be-EnEF3CQI46JkMNAXbPf3H6T7pzU\"",
"mtime": "2023-12-21T02:52:39.626Z",
"mtime": "2023-12-21T03:38:51.112Z",
"size": 2238,
"path": "../public/static/edit-icon-white.29b27582.svg"
},
"/static/empty-icon.24a01ae2.svg": {
"type": "image/svg+xml",
"etag": "\"d028-Our2UxxUiciRSduORd8JZCt5Prw\"",
"mtime": "2023-12-21T02:52:39.626Z",
"mtime": "2023-12-21T03:38:51.112Z",
"size": 53288,
"path": "../public/static/empty-icon.24a01ae2.svg"
},
"/static/entry.7f5ece9e.css": {
"/static/entry.3714ddae.css": {
"type": "text/css; charset=utf-8",
"etag": "\"b29b-4xEaTFGRbQ4fAXav6vywBK3Rwug\"",
"mtime": "2023-12-21T02:52:39.627Z",
"size": 45723,
"path": "../public/static/entry.7f5ece9e.css"
"etag": "\"b2ba-BwEkbxO3UqHXJE5hynAxCwyj4TY\"",
"mtime": "2023-12-21T03:38:51.113Z",
"size": 45754,
"path": "../public/static/entry.3714ddae.css"
},
"/static/entry.b40c895b.js": {
"/static/entry.74e41ae6.js": {
"type": "application/javascript",
"etag": "\"3c4bf-S+cbdgJtoUkKt0P6Z4QGFcUeP4s\"",
"mtime": "2023-12-21T02:52:39.628Z",
"size": 246975,
"path": "../public/static/entry.b40c895b.js"
"etag": "\"3c5d2-mbIwkw2yZibh63cjWJQVyDAEscc\"",
"mtime": "2023-12-21T03:38:51.113Z",
"size": 247250,
"path": "../public/static/entry.74e41ae6.js"
},
"/static/error-404.7fc72018.css": {
"type": "text/css; charset=utf-8",
"etag": "\"e2e-iNt1cqPQ0WDudfCTZVQd31BeRGs\"",
"mtime": "2023-12-21T02:52:39.627Z",
"mtime": "2023-12-21T03:38:51.113Z",
"size": 3630,
"path": "../public/static/error-404.7fc72018.css"
},
"/static/error-404.809b08a3.js": {
"/static/error-404.e9a929be.js": {
"type": "application/javascript",
"etag": "\"18de-JuwOp6LLAH0v1bsTmR5kf40cCZM\"",
"mtime": "2023-12-21T02:52:39.627Z",
"etag": "\"18de-3M9Dw0u4+FcdwGx/STRj6eO1j1g\"",
"mtime": "2023-12-21T03:38:51.113Z",
"size": 6366,
"path": "../public/static/error-404.809b08a3.js"
},
"/static/error-500.b5287091.js": {
"type": "application/javascript",
"etag": "\"756-YEjqdnnUYwSRHJqqfyxBSN8Qbmw\"",
"mtime": "2023-12-21T02:52:39.627Z",
"size": 1878,
"path": "../public/static/error-500.b5287091.js"
"path": "../public/static/error-404.e9a929be.js"
},
"/static/error-500.c5df6088.css": {
"type": "text/css; charset=utf-8",
"etag": "\"79e-ByRo+49BgcevWdRjJy3CMx2IA5k\"",
"mtime": "2023-12-21T02:52:39.627Z",
"mtime": "2023-12-21T03:38:51.113Z",
"size": 1950,
"path": "../public/static/error-500.c5df6088.css"
},
"/static/error-500.ec9a7266.js": {
"type": "application/javascript",
"etag": "\"756-5ybBqGYmuahs9LwY62OTgvp8Tqc\"",
"mtime": "2023-12-21T03:38:51.113Z",
"size": 1878,
"path": "../public/static/error-500.ec9a7266.js"
},
"/static/issue-bj.44adad8c.svg": {
"type": "image/svg+xml",
"etag": "\"926-lK6rrraYIC+9Yxyy0subzOK8XpE\"",
"mtime": "2023-12-21T02:52:39.626Z",
"mtime": "2023-12-21T03:38:51.110Z",
"size": 2342,
"path": "../public/static/issue-bj.44adad8c.svg"
},
"/static/logo.6622f82d.png": {
"type": "image/png",
"etag": "\"843f-FSXGFGigIHmtzjdcQzuMz/a7E+o\"",
"mtime": "2023-12-21T02:52:39.625Z",
"mtime": "2023-12-21T03:38:51.111Z",
"size": 33855,
"path": "../public/static/logo.6622f82d.png"
},
"/static/menu-icon-gray.d61f02b1.svg": {
"type": "image/svg+xml",
"etag": "\"6de-kmXhltPHfF4W1gmV7wT4aZCZ6gg\"",
"mtime": "2023-12-21T02:52:39.626Z",
"mtime": "2023-12-21T03:38:51.112Z",
"size": 1758,
"path": "../public/static/menu-icon-gray.d61f02b1.svg"
},
"/static/QRCode-icon.a105d5fc.svg": {
"type": "image/svg+xml",
"etag": "\"9c1-qGg9jZ5wmHJGzh2A00nHIGWHMh4\"",
"mtime": "2023-12-21T02:52:39.626Z",
"mtime": "2023-12-21T03:38:51.112Z",
"size": 2497,
"path": "../public/static/QRCode-icon.a105d5fc.svg"
},
"/static/tick-no.179037b3.svg": {
"type": "image/svg+xml",
"etag": "\"1ea-YISAWqJD56jxoQT8N812fDJfkMw\"",
"mtime": "2023-12-21T02:52:39.626Z",
"mtime": "2023-12-21T03:38:51.112Z",
"size": 490,
"path": "../public/static/tick-no.179037b3.svg"
},
"/static/tick-option.e092d22f.svg": {
"type": "image/svg+xml",
"etag": "\"29a-UVjuq3WHs6mhu1KGQ7gQmJH2Bc4\"",
"mtime": "2023-12-21T02:52:39.626Z",
"mtime": "2023-12-21T03:38:51.112Z",
"size": 666,
"path": "../public/static/tick-option.e092d22f.svg"
},
"/static/tick-orange.233abc69.svg": {
"type": "image/svg+xml",
"etag": "\"60a-VrP9K+TQp6JbNcrU5k1Dor/Kq/E\"",
"mtime": "2023-12-21T02:52:39.626Z",
"mtime": "2023-12-21T03:38:51.112Z",
"size": 1546,
"path": "../public/static/tick-orange.233abc69.svg"
},
"/static/title.98892974.png": {
"type": "image/png",
"etag": "\"1723-0OwkVass/2nFB99dRT4w0sPUvI0\"",
"mtime": "2023-12-21T02:52:39.626Z",
"mtime": "2023-12-21T03:38:51.112Z",
"size": 5923,
"path": "../public/static/title.98892974.png"
},
"/static/triangle-icon.c39ff2e7.svg": {
"type": "image/svg+xml",
"etag": "\"446-ylQ81DOJ3joSbsS9atyrW6pZsBY\"",
"mtime": "2023-12-21T02:52:39.627Z",
"mtime": "2023-12-21T03:38:51.112Z",
"size": 1094,
"path": "../public/static/triangle-icon.c39ff2e7.svg"
},
"/static/view-icon.da7fef35.svg": {
"type": "image/svg+xml",
"etag": "\"f39-5Jwx14wB0jgB0Du25KRZbkEEXvI\"",
"mtime": "2023-12-21T02:52:39.626Z",
"mtime": "2023-12-21T03:38:51.111Z",
"size": 3897,
"path": "../public/static/view-icon.da7fef35.svg"
},
"/static/builds/latest.json": {
"type": "application/json",
"etag": "\"47-fXiczp3aEbzo/Sf9TBBT29qPMAo\"",
"mtime": "2023-12-21T02:52:40.990Z",
"etag": "\"47-xJxdxM9U9V8tS10qxVZJOGdry/g\"",
"mtime": "2023-12-21T03:38:52.423Z",
"size": 71,
"path": "../public/static/builds/latest.json"
},
"/static/builds/meta/984a1b37-8472-442e-90b0-902edf3ab4f7.json": {
"/static/builds/meta/6c585092-7af7-4e50-aed3-56c838915750.json": {
"type": "application/json",
"etag": "\"8b-d5YE4eGwkcKthZA+8V4L7gXtKDg\"",
"mtime": "2023-12-21T02:52:40.990Z",
"etag": "\"8b-r5ibcF+j62wIq27WcmpLh2kkeKE\"",
"mtime": "2023-12-21T03:38:52.424Z",
"size": 139,
"path": "../public/static/builds/meta/984a1b37-8472-442e-90b0-902edf3ab4f7.json"
"path": "../public/static/builds/meta/6c585092-7af7-4e50-aed3-56c838915750.json"
}
};