搜索会在后台记录关键词

This commit is contained in:
ember 2025-12-29 14:38:00 +08:00
parent 2d7fbe8bfc
commit eed73da2e8
7 changed files with 20 additions and 10 deletions

1
dist/css/325.fa8a5d86.css vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/index.html vendored
View File

@ -1 +1 @@
<!doctype html><html lang="zh-CN"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>NEU小站</title><script defer="defer" src="/js/chunk-vendors.58aa9133.js"></script><script defer="defer" src="/js/app.17364b29.js"></script><link href="/css/chunk-vendors.c52e575a.css" rel="stylesheet"><link href="/css/app.01759f36.css" rel="stylesheet"></head><body><noscript><strong>抱歉NEU小站无法在没有 JavaScript 的情况下正常工作。请启用 JavaScript 以继续。</strong></noscript><div id="app"></div></body></html>
<!doctype html><html lang="zh-CN"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>NEU小站</title><script defer="defer" src="/js/chunk-vendors.58aa9133.js"></script><script defer="defer" src="/js/app.9c4499da.js"></script><link href="/css/chunk-vendors.c52e575a.css" rel="stylesheet"><link href="/css/app.01759f36.css" rel="stylesheet"></head><body><noscript><strong>抱歉NEU小站无法在没有 JavaScript 的情况下正常工作。请启用 JavaScript 以继续。</strong></noscript><div id="app"></div></body></html>

2
dist/js/325.93755988.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -182,6 +182,7 @@
import Navbar from '@/components/NavBar.vue';
import Loading from '@/components/Loading.vue';
import MessageBox from '@/utils/messageBox.js';
import Cookies from 'js-cookie';
export default {
name: 'SearchView',
@ -343,12 +344,21 @@ export default {
this.updateUrlParams(params);
//
const token = Cookies.get('token');
const headers = {
'Content-Type': 'application/json'
};
if (token) {
headers['Authorization'] = token;
}
const response = await fetch('https://newfront.东北大学.com/search/general', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(params)
headers: headers,
body: JSON.stringify({
...params,
record: true //
})
});
if (!response.ok) {