Skip to content

Commit

Permalink
feat: update readme
Browse files Browse the repository at this point in the history
Signed-off-by: laixingyou <[email protected]>
  • Loading branch information
coder-sett committed Mar 1, 2024
1 parent f9d7b77 commit 2622416
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 20 deletions.
21 changes: 14 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,20 @@ This template should help get you started developing with Vue 3 and TypeScript i

- [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).

## Type Support For `.vue` Imports in TS
## Project setup

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.
```
pnpm install
```

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:
### Compiles and hot-reloads for development

1. Disable the built-in TypeScript Extension
1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette
2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
```
pnpm dev
```

### Compiles and minifies for production

```
pnpm run build
```
4 changes: 0 additions & 4 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
<script setup lang="ts">
import Main from "./views/Main.vue"
import { ElConfigProvider } from "element-plus"
import type { EpPropMergeType } from "element-plus/es/utils/vue/props/types"
import { ref } from "vue"
</script>

<template>
<ElConfigProvider>
<!-- <Main /> -->
<RouterView />
</ElConfigProvider>
</template>
Expand Down
9 changes: 0 additions & 9 deletions src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,6 @@ export function fetchChatAPIProcess<T = any>(params: {
],
}

// if (authStore.isChatGPTAPI) {
// data = {
// ...data,
// systemMessage: settingStore.systemMessage,
// temperature: settingStore.temperature,
// top_p: settingStore.top_p,
// }
// }

return post<T>({
url: "/v1/chat/completions",
data,
Expand Down

0 comments on commit 2622416

Please sign in to comment.