From 664ad725a0d2847f570ff33acaa1f6bf2ddd56fb Mon Sep 17 00:00:00 2001 From: Zero Date: Fri, 1 Dec 2023 00:03:27 +0800 Subject: [PATCH] chore: hide invalid actions --- package.json | 16 +++++++------- src/views/chat/components/Header/index.vue | 25 +++++++++++----------- src/views/chat/index.vue | 12 ++++++----- 3 files changed, 28 insertions(+), 25 deletions(-) diff --git a/package.json b/package.json index b3288cdd93..f763246802 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,15 @@ { "name": "chatgpt-web", "version": "2.11.3", + "private": false, "description": "ChatGPT Web", + "author": "ChenZhaoYu ", "keywords": [ "chatgpt-web", "chatgpt", "chatbot", "vue" ], - "author": "ChenZhaoYu ", "scripts": { "dev": "vite", "build": "run-p type-check build-only", @@ -21,11 +22,6 @@ "common:cleanup": "rimraf node_modules && rimraf pnpm-lock.yaml", "common:prepare": "husky install" }, - "lint-staged": { - "*.{ts,tsx,vue}": [ - "pnpm lint:fix" - ] - }, "dependencies": { "@traptitech/markdown-it-katex": "^3.6.0", "@vueuse/core": "^9.13.0", @@ -68,5 +64,9 @@ "vite-plugin-pwa": "^0.14.4", "vue-tsc": "^1.2.0" }, - "private": false -} \ No newline at end of file + "lint-staged": { + "*.{ts,tsx,vue}": [ + "pnpm lint:fix" + ] + } +} diff --git a/src/views/chat/components/Header/index.vue b/src/views/chat/components/Header/index.vue index c16fc4760a..cb61467af7 100644 --- a/src/views/chat/components/Header/index.vue +++ b/src/views/chat/components/Header/index.vue @@ -1,6 +1,7 @@ diff --git a/src/views/chat/index.vue b/src/views/chat/index.vue index 5bb5cd5ecd..2723d87345 100644 --- a/src/views/chat/index.vue +++ b/src/views/chat/index.vue @@ -10,7 +10,8 @@ import { useScroll } from './hooks/useScroll' import { useChat } from './hooks/useChat' import { useUsingContext } from './hooks/useUsingContext' import HeaderComponent from './components/Header/index.vue' -import { HoverButton, SvgIcon } from '@/components/common' +// import { HoverButton, SvgIcon } from '@/components/common' +import { SvgIcon } from '@/components/common' import { useBasicLayout } from '@/hooks/useBasicLayout' import { useChatStore, usePromptStore } from '@/store' import { fetchChatAPIProcess } from '@/api' @@ -29,7 +30,8 @@ const chatStore = useChatStore() const { isMobile } = useBasicLayout() const { addChat, updateChat, updateChatSome, getChatByUuidAndIndex } = useChat() const { scrollRef, scrollToBottom, scrollToBottomIfAtBottom } = useScroll() -const { usingContext, toggleUsingContext } = useUsingContext() +// const { usingContext, toggleUsingContext } = useUsingContext() +const { usingContext } = useUsingContext() const { uuid } = route.params as { uuid: string } @@ -511,9 +513,9 @@ onUnmounted(() => {