修改页面标题
This commit is contained in:
parent
beae7aecf7
commit
86b779a3da
1
dist/css/app.37ba2ca9.css
vendored
Normal file
1
dist/css/app.37ba2ca9.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/css/app.6ad90788.css
vendored
1
dist/css/app.6ad90788.css
vendored
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>front</title><script defer="defer" src="/js/chunk-vendors.f83cd08c.js"></script><script defer="defer" src="/js/app.9cb02566.js"></script><link href="/css/chunk-vendors.26a88809.css" rel="stylesheet"><link href="/css/app.6ad90788.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but front 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>front</title><script defer="defer" src="/js/chunk-vendors.f83cd08c.js"></script><script defer="defer" src="/js/app.21883266.js"></script><link href="/css/chunk-vendors.26a88809.css" rel="stylesheet"><link href="/css/app.37ba2ca9.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but front doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
|
2
dist/js/app.21883266.js
vendored
Normal file
2
dist/js/app.21883266.js
vendored
Normal file
File diff suppressed because one or more lines are too long
2
dist/js/app.9cb02566.js
vendored
2
dist/js/app.9cb02566.js
vendored
File diff suppressed because one or more lines are too long
16
src/App.vue
16
src/App.vue
@ -4,6 +4,7 @@
|
||||
加载中...
|
||||
</div>
|
||||
<div v-else-if="!isLoggedIn" class="login-prompt">
|
||||
<!-- <div class="title">NEU小站OJ题库</div> -->
|
||||
<div class="login-message">请登录后进入NEU小站OJ题库!</div>
|
||||
<button class="login-button" @click="goToLogin">前往登录</button>
|
||||
</div>
|
||||
@ -36,6 +37,14 @@ export default {
|
||||
token: Cookies.get('token') || ''
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
isLoggedIn: {
|
||||
handler(newValue) {
|
||||
document.title = newValue ? 'NEU小站OJ题库 - 题目列表' : 'NEU小站OJ题库';
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async checkLoginStatus() {
|
||||
try {
|
||||
@ -161,6 +170,13 @@ body {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 32px;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.login-message {
|
||||
font-size: 24px;
|
||||
color: #333;
|
||||
|
Loading…
x
Reference in New Issue
Block a user