修改转发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)
};