Browse Source

change error

master
godo 8 months ago
parent
commit
8b1d1fed71
  1. 2
      frontend/src/components/builtin/FileList.vue
  2. 1
      frontend/src/components/desktop/LockDesktop.vue
  3. 4
      frontend/src/stores/chat.ts

2
frontend/src/components/builtin/FileList.vue

@ -64,7 +64,7 @@
</div>
</template>
<script lang="ts" setup>
import { useSystem, basename, dirname, join, OsFileWithoutContent, Notify, BrowserWindow } from '@/system/index.ts';
import { useSystem, basename, OsFileWithoutContent, Notify, BrowserWindow } from '@/system/index.ts';
import { getSystemKey } from '@/system/config'
import { emitEvent, mountEvent } from '@/system/event';
import { useContextMenu } from '@/hook/useContextMenu.ts';

1
frontend/src/components/desktop/LockDesktop.vue

@ -160,6 +160,7 @@ const rules = {
confirmPassword: [
{ required: true, message: '请再次输入密码', trigger: 'blur' },
{ validator: (rule:any, value:any, callback:any) => {
console.log(rule)
if (value === '') {
callback(new Error('请再次输入密码'));
} else if (value !== regForm.value.password) {

4
frontend/src/stores/chat.ts

@ -46,11 +46,11 @@ export const useChatStore = defineStore('chatStore', () => {
const max = innerRef.value.clientHeight
scrollbarRef.value.setScrollTop(max)
}
const changeChatList = async (item:any) => {
const changeChatList = async () => {
// const res = await getChatList(id)
// chatList.value = res.data
}
const handleContextMenu = async (id: number) => {
const handleContextMenu = async () => {
contextMenu.value.visible = false;
}
const showContextMenu = (event: any, id: number) => {

Loading…
Cancel
Save