Spaces:
Running
Running
muxi feng
commited on
Commit
·
2c42897
1
Parent(s):
66b8e19
更新显示bug
Browse files- app/components/user.module.scss +1 -0
- app/components/user.tsx +1 -0
- app/requests.ts +1 -1
- app/store/user.ts +1 -1
app/components/user.module.scss
CHANGED
@@ -23,6 +23,7 @@
|
|
23 |
background-color: var(--white);
|
24 |
color: var(--black);
|
25 |
text-align: right;
|
|
|
26 |
}
|
27 |
|
28 |
.kamiButton{
|
|
|
23 |
background-color: var(--white);
|
24 |
color: var(--black);
|
25 |
text-align: right;
|
26 |
+
max-width: 130px;
|
27 |
}
|
28 |
|
29 |
.kamiButton{
|
app/components/user.tsx
CHANGED
@@ -121,6 +121,7 @@ export function User() {
|
|
121 |
function getVipTime(){
|
122 |
let time = String(new Date());
|
123 |
if(useStor.vip_time!=null || useStor.vip_time!=''){
|
|
|
124 |
time=useStor.vip_time
|
125 |
}
|
126 |
const date = new Date(time)
|
|
|
121 |
function getVipTime(){
|
122 |
let time = String(new Date());
|
123 |
if(useStor.vip_time!=null || useStor.vip_time!=''){
|
124 |
+
console.log(useStor.vip_time)
|
125 |
time=useStor.vip_time
|
126 |
}
|
127 |
const date = new Date(time)
|
app/requests.ts
CHANGED
@@ -575,7 +575,7 @@ export async function requestChatStream(
|
|
575 |
}
|
576 |
} catch (err) {
|
577 |
console.error("NetWork Error", err);
|
578 |
-
options?.
|
579 |
}
|
580 |
}
|
581 |
}
|
|
|
575 |
}
|
576 |
} catch (err) {
|
577 |
console.error("NetWork Error", err);
|
578 |
+
options?.onMessage("请换一个问题试试吧", true);
|
579 |
}
|
580 |
}
|
581 |
}
|
app/store/user.ts
CHANGED
@@ -99,7 +99,7 @@ export const DEFAULT_USER = {
|
|
99 |
password: "",
|
100 |
name: "",
|
101 |
wallet: 0,
|
102 |
-
vip_time:
|
103 |
mail: "",
|
104 |
sig_state: "",
|
105 |
head: "",
|
|
|
99 |
password: "",
|
100 |
name: "",
|
101 |
wallet: 0,
|
102 |
+
vip_time: new Date(),
|
103 |
mail: "",
|
104 |
sig_state: "",
|
105 |
head: "",
|