fix(web): types and imports

This commit is contained in:
Acbox
2026-02-10 15:33:14 +08:00
parent 23173a8d1b
commit 0ae86de02b
5 changed files with 5 additions and 11 deletions
@@ -20,8 +20,8 @@
</template>
<script setup lang="ts">
import UserChat from './UserChat/index.vue'
import RobotChat from './RobotChat/index.vue'
import UserChat from './user-chat/index.vue'
import RobotChat from './robot-chat/index.vue'
import { inject, nextTick, ref, watch } from 'vue'
import { useElementBounding } from '@vueuse/core'
import { useChatList } from '@/store/chat-list'
@@ -157,7 +157,7 @@ import {
Spinner
} from '@memoh/ui'
import { useForm } from 'vee-validate'
import { inject, watch, type Ref, ref, reactive, computed } from 'vue'
import { inject, watch, type Ref, ref } from 'vue'
import { toTypedSchema } from '@vee-validate/zod'
import z from 'zod'
import request from '@/utils/request'
-3
View File
@@ -1,5 +1,4 @@
import { createApp } from 'vue'
// @ts-ignore
import './style.css'
import App from './App.vue'
import router from './router'
@@ -7,9 +6,7 @@ import { createPinia } from 'pinia'
import i18n from './i18n'
import { PiniaColada } from '@pinia/colada'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
// @ts-ignore
import 'markstream-vue/index.css'
// @ts-ignore
import 'katex/dist/katex.min.css'
createApp(App)
+1 -3
View File
@@ -1,6 +1,4 @@
import { computed } from 'vue'
import { createRouter, createWebHistory } from 'vue-router'
import i18n from './i18n'
import { i18nRef } from './i18n'
const routes = [
@@ -14,7 +12,7 @@ const routes = [
component: () => import('@/pages/login/index.vue')
}, {
name: 'Main',
component: () => import('@/pages/mainSection/index.vue'),
component: () => import('@/pages/main-section/index.vue'),
path: '/main',
redirect: '/main/chat',
meta: {
+1 -2
View File
@@ -11,8 +11,7 @@
"erasableSyntaxOnly": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true,
"typeRoots": ["./node_modules/@types", "./type.d.ts"],
"rootDir": ".",
"rootDir": ".",
"paths": {
"@/*": ["./src/*"]
}