mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
fix(web): types and imports
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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,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: {
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
"erasableSyntaxOnly": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noUncheckedSideEffectImports": true,
|
||||
"typeRoots": ["./node_modules/@types", "./type.d.ts"],
|
||||
"rootDir": ".",
|
||||
"rootDir": ".",
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user