Skip to content

Commit 2622416

Browse files
committed
feat: update readme
Signed-off-by: laixingyou <[email protected]>
1 parent f9d7b77 commit 2622416

File tree

3 files changed

+14
-20
lines changed

3 files changed

+14
-20
lines changed

README.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,20 @@ This template should help get you started developing with Vue 3 and TypeScript i
66

77
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
88

9-
## Type Support For `.vue` Imports in TS
9+
## Project setup
1010

11-
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
11+
```
12+
pnpm install
13+
```
1214

13-
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
15+
### Compiles and hot-reloads for development
1416

15-
1. Disable the built-in TypeScript Extension
16-
1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette
17-
2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
18-
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
17+
```
18+
pnpm dev
19+
```
20+
21+
### Compiles and minifies for production
22+
23+
```
24+
pnpm run build
25+
```

src/App.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
<script setup lang="ts">
2-
import Main from "./views/Main.vue"
32
import { ElConfigProvider } from "element-plus"
4-
import type { EpPropMergeType } from "element-plus/es/utils/vue/props/types"
5-
import { ref } from "vue"
63
</script>
74

85
<template>
96
<ElConfigProvider>
10-
<!-- <Main /> -->
117
<RouterView />
128
</ElConfigProvider>
139
</template>

src/api/index.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,6 @@ export function fetchChatAPIProcess<T = any>(params: {
4646
],
4747
}
4848

49-
// if (authStore.isChatGPTAPI) {
50-
// data = {
51-
// ...data,
52-
// systemMessage: settingStore.systemMessage,
53-
// temperature: settingStore.temperature,
54-
// top_p: settingStore.top_p,
55-
// }
56-
// }
57-
5849
return post<T>({
5950
url: "/v1/chat/completions",
6051
data,

0 commit comments

Comments
 (0)