更新CourseCard的打开URL逻辑
This commit is contained in:
parent
886b0436b4
commit
e6c7fcc543
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="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.d3aff539.js"></script><script defer="defer" src="/js/app.53b122b7.js"></script><link href="/css/chunk-vendors.c52e575a.css" rel="stylesheet"><link href="/css/app.7fd128bc.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.d3aff539.js"></script><script defer="defer" src="/js/app.2a808eab.js"></script><link href="/css/chunk-vendors.c52e575a.css" rel="stylesheet"><link href="/css/app.7fd128bc.css" rel="stylesheet"></head><body><noscript><strong>抱歉,NEU小站无法在没有 JavaScript 的情况下正常工作。请启用 JavaScript 以继续。</strong></noscript><div id="app"></div></body></html>
|
||||
2
dist/js/128.2e752e77.js
vendored
Normal file
2
dist/js/128.2e752e77.js
vendored
Normal file
File diff suppressed because one or more lines are too long
2
dist/js/597.6c85082b.js
vendored
2
dist/js/597.6c85082b.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -118,9 +118,9 @@ export default {
|
||||
.then(() => {
|
||||
// 用户确认,跳转到投稿页面
|
||||
// 将课程ID转为字符串并进行base64编码
|
||||
const courseIdBase64 = btoa(String(this.courseId));
|
||||
// const courseIdBase64 = btoa(String(this.courseId));
|
||||
// 构建URL并在新窗口打开
|
||||
const url = `https://course.东北大学.com/courses?c=${courseIdBase64}`;
|
||||
const url = `https://course.东北大学.com/detail/${this.courseId}`;
|
||||
window.open(url, '_blank');
|
||||
})
|
||||
.catch(() => {
|
||||
@ -129,9 +129,9 @@ export default {
|
||||
});
|
||||
} else {
|
||||
// 将课程ID转为字符串并进行base64编码
|
||||
const courseIdBase64 = btoa(String(this.courseId));
|
||||
// const courseIdBase64 = btoa(String(this.courseId));
|
||||
// 构建URL并在新窗口打开
|
||||
const url = `https://course.东北大学.com/courses?c=${courseIdBase64}`;
|
||||
const url = `https://course.东北大学.com/detail/${this.courseId}`;
|
||||
window.open(url, '_blank');
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user