修复部分特殊字符无法搜索的bug
This commit is contained in:
parent
20ce20696d
commit
026d60c823
File diff suppressed because one or more lines are too long
2
dist/index.html
vendored
2
dist/index.html
vendored
@ -1 +1 @@
|
||||
<!doctype html><html lang=""><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小站课程评分系统 - v1.1</title><script defer="defer" src="/js/chunk-vendors.3aa9144b.js"></script><script defer="defer" src="/js/app.89c3938a.js"></script><link href="/css/chunk-vendors.f2db5e15.css" rel="stylesheet"><link href="/css/app.0743f375.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but myproject doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
|
||||
<!doctype html><html lang=""><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小站课程评分系统 - v1.1</title><script defer="defer" src="/js/chunk-vendors.3aa9144b.js"></script><script defer="defer" src="/js/app.06c2471a.js"></script><link href="/css/chunk-vendors.f2db5e15.css" rel="stylesheet"><link href="/css/app.63f333fa.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but myproject doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
|
File diff suppressed because one or more lines are too long
@ -220,7 +220,11 @@ export default {
|
||||
? `&college=${this.selectedCollege}`
|
||||
: '';
|
||||
|
||||
const response = await fetch(`https://coursesystem.xn--xhq44jb2fzpc.com/list/courses?search=${this.searchQuery}&teacher=${this.teacherQuery}&sortBy=${sortParam}&sort=${this.sortOrder}&category=${categoryParam}${collegeParam}&page=${this.currentPage}`);
|
||||
// 对搜索参数进行编码
|
||||
const encodedSearch = encodeURIComponent(this.searchQuery);
|
||||
const encodedTeacher = encodeURIComponent(this.teacherQuery);
|
||||
|
||||
const response = await fetch(`https://coursesystem.xn--xhq44jb2fzpc.com/list/courses?search=${encodedSearch}&teacher=${encodedTeacher}&sortBy=${sortParam}&sort=${this.sortOrder}&category=${categoryParam}${collegeParam}&page=${this.currentPage}`);
|
||||
|
||||
const result = await response.json();
|
||||
this.courses = result;
|
||||
@ -239,7 +243,11 @@ export default {
|
||||
? `&college=${this.selectedCollege}`
|
||||
: '';
|
||||
|
||||
const response = await fetch(`https://coursesystem.xn--xhq44jb2fzpc.com/list/courses/pages?search=${this.searchQuery}&teacher=${this.teacherQuery}&category=${categoryParam}${collegeParam}`);
|
||||
// 对搜索参数进行编码
|
||||
const encodedSearch = encodeURIComponent(this.searchQuery);
|
||||
const encodedTeacher = encodeURIComponent(this.teacherQuery);
|
||||
|
||||
const response = await fetch(`https://coursesystem.xn--xhq44jb2fzpc.com/list/courses/pages?search=${encodedSearch}&teacher=${encodedTeacher}&category=${categoryParam}${collegeParam}`);
|
||||
|
||||
const result = await response.json();
|
||||
this.totalPages = result.totalPages;
|
||||
|
@ -224,7 +224,11 @@ export default {
|
||||
? `&college=${this.selectedCollege}`
|
||||
: '';
|
||||
|
||||
const response = await fetch(`https://coursesystem.xn--xhq44jb2fzpc.com/list/courses?search=${this.searchQuery}&teacher=${this.teacherQuery}&sortBy=${sortParam}&sort=${this.sortOrder}&category=${categoryParam}${collegeParam}&page=${this.currentPage}`);
|
||||
// 对搜索参数进行编码
|
||||
const encodedSearch = encodeURIComponent(this.searchQuery);
|
||||
const encodedTeacher = encodeURIComponent(this.teacherQuery);
|
||||
|
||||
const response = await fetch(`https://coursesystem.xn--xhq44jb2fzpc.com/list/courses?search=${encodedSearch}&teacher=${encodedTeacher}&sortBy=${sortParam}&sort=${this.sortOrder}&category=${categoryParam}${collegeParam}&page=${this.currentPage}`);
|
||||
|
||||
const result = await response.json();
|
||||
this.courses = result;
|
||||
@ -243,7 +247,11 @@ export default {
|
||||
? `&college=${this.selectedCollege}`
|
||||
: '';
|
||||
|
||||
const response = await fetch(`https://coursesystem.xn--xhq44jb2fzpc.com/list/courses/pages?search=${this.searchQuery}&teacher=${this.teacherQuery}&category=${categoryParam}${collegeParam}`);
|
||||
// 对搜索参数进行编码
|
||||
const encodedSearch = encodeURIComponent(this.searchQuery);
|
||||
const encodedTeacher = encodeURIComponent(this.teacherQuery);
|
||||
|
||||
const response = await fetch(`https://coursesystem.xn--xhq44jb2fzpc.com/list/courses/pages?search=${encodedSearch}&teacher=${encodedTeacher}&category=${categoryParam}${collegeParam}`);
|
||||
|
||||
const result = await response.json();
|
||||
this.totalPages = result.totalPages;
|
||||
|
Loading…
x
Reference in New Issue
Block a user