File tree Expand file tree Collapse file tree 3 files changed +27
-20
lines changed
Expand file tree Collapse file tree 3 files changed +27
-20
lines changed Original file line number Diff line number Diff line change 1212 <v-icon :icon =" item.icon" :size =" item.icon === 'mdi-earth' ? 24 : 16" />
1313 </a >
1414
15-
15+
1616 <div
1717 class =" text-caption text-disabled"
1818 style =" position : absolute ; right : 16px "
1919 >
20- © ; 2020-{{ new Date().getFullYear() }}
21- <span class =" d-none d-sm-inline-block" >SunWuyuan</span >
22- —
20+
2321 <a
2422 class =" text-decoration-none on-surface"
25- href =" https://github.com/sunwuyuan/classworks-frontend "
23+ href =" https://github.com/ZeroCatDev/Classworks "
2624 rel =" noopener noreferrer"
2725 target =" _blank"
2826 >
2927 Classworks
3028 </a > <a
3129 class =" text-decoration-none on-surface"
32- href =" https://beiancx .miit.gov.cn"
30+ href =" https://beian .miit.gov.cn"
3331 rel =" noopener noreferrer"
3432 target =" _blank"
3533 >
@@ -45,9 +43,9 @@ const { mobile } = useDisplay();
4543
4644const items = [
4745 {
48- title: " 孙悟远 " ,
46+ title: " Classworks " ,
4947 icon: ` mdi-earth` ,
50- href: " https://wuyuan.dev " ,
48+ href: " https://cs.houlangs.com " ,
5149 },
5250 {
5351 title: " ZeroCat" ,
@@ -57,7 +55,7 @@ const items = [
5755 {
5856 title: " GitHub" ,
5957 icon: " mdi-github" ,
60- href: " https://github.com/sunwuyuan/classworks-frontend " ,
58+ href: " https://github.com/ZeroCatDev/Classworks " ,
6159 },
6260];
6361 </script >
Original file line number Diff line number Diff line change 44 <v-chip
55 v-if =" isReadOnly"
66 color =" warning"
7- size =" small"
8- class =" mr-2"
97 prepend-icon =" mdi-lock-outline"
108 >
119 只读
2624 <v-card class =" rounded-xl" border hover >
2725 <v-card-title class =" text-h6" >输入访问密码</v-card-title >
2826 <v-card-text >
29- <div v-if =" passwordHint" class =" text-body-2 mb-4" >
30- <v-icon icon =" mdi-lightbulb-outline" color =" warning" class =" mr-1" />
31- 提示:{{ passwordHint }}
32- </div >
3327 <v-text-field
3428 v-model =" password"
3529 label =" 密码"
4135 :disabled =" loading"
4236 autofocus
4337 />
38+
39+ <p v-if =" passwordHint" >密码提示:{{ passwordHint }}</p >
4440 </v-card-text >
4541 <v-card-actions >
4642 <v-spacer />
4743 <v-btn
4844 color =" grey"
4945 variant =" text"
46+ class =" rounded-xl"
5047 @click =" dialog = false"
5148 :disabled =" loading"
5249 >
5350 取消
5451 </v-btn >
5552 <v-btn
5653 color =" primary"
54+ class =" rounded-xl"
55+ variant =" tonal"
56+
5757 @click =" checkPassword"
5858 :loading =" loading"
5959 :disabled =" !password"
@@ -113,8 +113,7 @@ export default {
113113 [" PRIVATE" , " PROTECTED" , " PUBLIC" ].includes (response .data .accessType )
114114 ) {
115115 this .accessType = response .data .accessType ;
116- // 保存密码提示
117- this .passwordHint = response .data .passwordHint || null ;
116+
118117 } else {
119118 return ;
120119 }
@@ -132,6 +131,13 @@ export default {
132131 this .setReadOnly (true );
133132 }
134133 }
134+ const passwordHintresponse = await axios .get (
135+ ` ${ getSetting (" server.domain" )} /${ getSetting (" device.uuid" )} /_hint`
136+ );
137+ if (passwordHintresponse .data && passwordHintresponse .data .passwordHint ) {
138+ this .passwordHint = passwordHintresponse .data .passwordHint || null ;
139+ }
140+
135141 } catch (error) {
136142 // 处理403错误
137143 if (error .response && error .response .status === 403 ) {
@@ -209,4 +215,9 @@ export default {
209215 align- items: center;
210216 gap: 8px ;
211217}
218+
219+ .password - hint {
220+ max- width: 100 % ;
221+ word- wrap: break - word;
222+ }
212223< / style>
Original file line number Diff line number Diff line change 11<template >
22 <v-app-bar class =" no-select" >
3- <template #prepend >
4- <v-app-bar-nav-icon icon =" mdi-home" />
5- </template >
3+
64
75 <v-app-bar-title >
86 {{ state.classNumber }} - {{ titleText }}
You can’t perform that action at this time.
0 commit comments