@@ -14,6 +14,7 @@ import { useLimitHook } from '@/hooks/use-limit-hook';
14
14
import { userStorage } from ' @/utils/storage' ;
15
15
import { useUser } from ' @/hooks/use-user'
16
16
import GroupModal from ' @/components/Group-Modal/index.vue'
17
+ import UserModal from ' @/components/User-Modal/index.vue'
17
18
18
19
19
20
const { isLogin, showLoginModal, userLogout } = useUser ()
@@ -140,7 +141,8 @@ const onUpscale = async (msg: Message) => {
140
141
prompt ,
141
142
index ,
142
143
msgHash ,
143
- msgId
144
+ msgId ,
145
+ flags: msg .flags || 0
144
146
}) as any ;
145
147
console .log (" newId: " , newId );
146
148
const newMsg: Message = {
@@ -208,6 +210,13 @@ const showGroupModal = () => {
208
210
})
209
211
}
210
212
213
+ const showUserModal = () => {
214
+ showModal (UserModal , {
215
+ closeOnClickModal: true ,
216
+ closeOnPressEscape: true
217
+ })
218
+ }
219
+
211
220
onMounted (() => {
212
221
getList ({ pageNum: 1 , pageSize: data .pageSize }).finally (() => {
213
222
data .initLoading = false
@@ -239,18 +248,23 @@ onMounted(() => {
239
248
class =" absolute left-10 right-10 max-sm:left-2 max-sm:right-2 bottom-4 max-sm:bottom-2 flex-row items-center justify-between px-2 py-2 bg-gray-100 border-gray-400 rounded-[4px]" >
240
249
<!-- 快捷/帮助区域 -->
241
250
<div class =" flex w-full px-2 pb-2 pt-1 text-md select-none flex-wrap" >
242
- <p class =" underline text-orange-400 pr-4 cursor-pointer max-sm:text-sm" @click.stop =" helpThink" >想一个</p >
243
- <p class =" underline text-orange-400 pr-4 cursor-pointer max-sm:text-sm" @click.stop =" showSettingsModal" >设置</p >
244
- <!-- <p class="underline text-orange-400 pr-4 cursor-pointer" @click.stop="showSettingsModal">设置风格</p> -->
245
- <p class =" underline text-orange-400 cursor-pointer max-sm:text-sm" @click.stop =" showUseModal" >使用说明</p >
246
- <p class =" underline text-orange-400 pr-4 ml-4 max-sm:text-sm" @click.stop =" onlyForMe" >
247
- <input id =" onlyMe" v-model =" data.onlyCurrentUser" type =" checkbox" class =" cursor-pointer" >
251
+ <p class =" underline text-orange-400 pr-4 cursor-pointer max-sm:text-sm max-sm:pr-1" @click.stop =" helpThink" >想一个
252
+ </p >
253
+ <p class =" underline text-orange-400 pr-4 cursor-pointer max-sm:text-sm max-sm:pr-1"
254
+ @click.stop =" showSettingsModal" >设置</p >
255
+ <p class =" underline text-orange-400 cursor-pointer max-sm:text-sm max-sm:pr-1" @click.stop =" showUseModal" >使用说明
256
+ </p >
257
+ <p class =" underline text-orange-400 pr-4 ml-4 max-sm:text-sm max-sm:pr-1 max-sm:ml-1" @click.stop =" onlyForMe" >
258
+ <input id =" onlyMe" v-model =" data.onlyCurrentUser" type =" checkbox" class =" cursor-pointer max-sm:pl-1" >
248
259
<label for =" onlyMe" class =" cursor-pointer" >只看自己</label >
249
260
</p >
250
261
<p class =" flex-1" ></p >
251
- <p class =" underline text-orange-400 pr-4 cursor-pointer max-sm:text-sm" @click =" showGroupModal" >交流群</p >
252
- <p v-if =" !isLogin" class =" underline text-orange-400 pr-4 cursor-pointer font-bold max-sm:text-sm" @click.stop =" showLoginModal" >登录/注册</p >
253
- <p v-if =" isLogin" class =" underline text-orange-400 pr-4 cursor-pointer max-sm:text-sm" @click.stop =" userLogout" >退出</p >
262
+ <p class =" underline text-orange-400 pr-4 cursor-pointer max-sm:text-sm max-sm:pr-1" @click =" showGroupModal" >交流群
263
+ </p >
264
+ <p v-if =" !isLogin" class =" underline text-orange-400 pr-4 cursor-pointer font-bold max-sm:text-sm max-sm:pr-1"
265
+ @click.stop =" showLoginModal" >我的</p >
266
+ <p v-if =" isLogin" class =" underline text-orange-400 pr-4 cursor-pointer max-sm:text-sm max-sm:pr-1"
267
+ @click.stop =" showUserModal" >我的</p >
254
268
</div >
255
269
<!-- 输入框 -->
256
270
<div class =" w-full bg-white flex items-center" >
@@ -263,4 +277,8 @@ onMounted(() => {
263
277
</div >
264
278
</div >
265
279
</div >
266
- </template >
280
+ </template >
281
+
282
+ <style >#contentWrap .el-loading-mask {
283
+ background-color : transparent ;
284
+ } </style >
0 commit comments