no message

This commit is contained in:
A1300399510 2025-02-19 19:03:28 +08:00
parent 31157ef7cc
commit 2c38811ed6
5 changed files with 33 additions and 33 deletions

View File

@ -460,6 +460,7 @@ const cancelCollection = (token, index, uniqid) => {
<style lang="less"> <style lang="less">
.dialog-box { .dialog-box {
background: transparent;
header { header {
display: none; display: none;
} }

View File

@ -1,24 +1,23 @@
// https://nuxt.com/docs/api/configuration/nuxt-config // https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({ export default defineNuxtConfig({
ssr: true, optimizeDeps: {
devtools: { enabled: true }, include: ['dayjs'],
modules: ["@element-plus/nuxt"], },
ssr: true,
devtools: { enabled: true },
modules: ["@element-plus/nuxt"],
router: { app: {
pages: false head: {
}, link: [{ rel: "stylesheet", href: "//bbs.gter.net/data/cache/style_2_common.css?Z62" }],
script: [
app: { {
head: { src: "//bbs.gter.net/static/js/common.js",
link: [{ rel: "stylesheet", href: "//bbs.gter.net/data/cache/style_2_common.css?Z62" }], body: true,
script: [ charset: "gb2312",
{ },
src: "//bbs.gter.net/static/js/common.js", {
body: true, innerHTML: `
charset: "gb2312",
},
{
innerHTML: `
window.userInfoWin = {} window.userInfoWin = {}
STYLEID = "2"; STYLEID = "2";
STATICURL = "static/"; STATICURL = "static/";
@ -37,12 +36,12 @@ export default defineNuxtConfig({
REPORTURL = "aHR0cDovL2Jicy5ndGVyLm5ldC9mb3J1bS5waHA/dGlkPTI0MDYzNTYmZ290bz1sYXN0cG9zdA=="; REPORTURL = "aHR0cDovL2Jicy5ndGVyLm5ldC9mb3J1bS5waHA/dGlkPTI0MDYzNTYmZ290bz1sYXN0cG9zdA==";
SITEURL = "https://ask.gter.net/"; SITEURL = "https://ask.gter.net/";
JSPATH = "static/js/";`, JSPATH = "static/js/";`,
type: "text/javascript", type: "text/javascript",
charset: "utf-8", charset: "utf-8",
}, },
], ],
}, },
}, },
compatibilityDate: "2025-02-19", compatibilityDate: "2025-02-19",
}) })

View File

@ -11,19 +11,19 @@
"postinstall": "nuxt prepare" "postinstall": "nuxt prepare"
}, },
"devDependencies": { "devDependencies": {
"@element-plus/nuxt": "^1.0.7",
"@nuxt/devtools": "latest", "@nuxt/devtools": "latest",
"element-plus": "^2.4.3", "element-plus": "^2.9.4",
"less": "^4.2.0", "less": "^4.2.0",
"nuxt": "^3.8.2", "nuxt": "^3.8.2",
"vue": "^3.3.10", "vue": "^3.3.10",
"vue-router": "^4.2.5" "vue-router": "^4.2.5"
}, },
"dependencies": { "dependencies": {
"@element-plus/nuxt": "^1.1.1",
"@popperjs/core": "^2.11.8", "@popperjs/core": "^2.11.8",
"axios": "^1.6.2", "axios": "^1.6.2",
"dayjs": "latest",
"masonry-layout": "^4.2.2", "masonry-layout": "^4.2.2",
"qs": "^6.11.2" "qs": "^6.11.2"
}, }
"__npminstall_done": false
} }

View File

@ -2050,7 +2050,7 @@ let permissions = ref([])
onMounted(() => { onMounted(() => {
setTimeout(() => { setTimeout(() => {
permissions.value = window["permissions"] || [] permissions.value = window["permissions"] || []
permissions.value = ["mj.hide", "comment.edit", "comment.delete"] // permissions.value = ["mj.hide", "comment.edit", "comment.delete"]
}, 1000) }, 1000)
}) })
@ -2065,6 +2065,7 @@ const handleHide = () => {
mjHideHttp({ token }).then(res => { mjHideHttp({ token }).then(res => {
dialogVisible.value = false dialogVisible.value = false
ElMessage.success(res.message || "隐藏成功") ElMessage.success(res.message || "隐藏成功")
router.replace("/index.html")
}) })
} }

View File

@ -1,6 +1,5 @@
import axios from 'axios'; import axios from 'axios';
import QS from 'qs'; import QS from 'qs';
import { ElMessage } from "element-plus";
axios.defaults.baseURL = 'https://interviewexperience.gter.net' axios.defaults.baseURL = 'https://interviewexperience.gter.net'
@ -10,7 +9,7 @@ axios.defaults.withCredentials = true
axios.interceptors.request.use( //响应拦截 axios.interceptors.request.use( //响应拦截
async config => { async config => {
// 开发时登录用的,可以直接替换小程序的 authorization // 开发时登录用的,可以直接替换小程序的 authorization
config['headers']['authorization'] = process.env.NODE_ENV !== "production" && "c1fb97e6994539d87922b1b60c09d43c" config['headers']['authorization'] = process.env.NODE_ENV !== "production" && "63ffbd4e4790accd31a0dafd21cd5f12"
// config['headers']['authorization'] = "2lfrtq7h3ge634pl4ptlu2pbh2" // config['headers']['authorization'] = "2lfrtq7h3ge634pl4ptlu2pbh2"
return config; return config;
}, },