优化了投稿列表进入文章的逻辑
This commit is contained in:
parent
51a2551361
commit
5b57a2c3b0
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.f3a85c9b.js"></script><script defer="defer" src="/js/app.737000ea.js"></script><link href="/css/app.00d7efca.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.f3a85c9b.js"></script><script defer="defer" src="/js/app.4fe6457e.js"></script><link href="/css/app.00d7efca.css" rel="stylesheet"></head><body><noscript><strong>抱歉,NEU小站无法在没有 JavaScript 的情况下正常工作。请启用 JavaScript 以继续。</strong></noscript><div id="app"></div></body></html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -122,9 +122,9 @@ export default {
|
||||
|
||||
// 跳转到文章页面
|
||||
navigateToArticle(articleId) {
|
||||
window.location.href = `/article/${articleId}`;
|
||||
// window.location.href = `/article/${articleId}`;
|
||||
// 或者使用Vue Router:
|
||||
// this.$router.push(`/article/${articleId}`);
|
||||
this.$router.push(`/article/${articleId}`);
|
||||
},
|
||||
|
||||
// 格式化日期
|
||||
|
Loading…
x
Reference in New Issue
Block a user