Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n(zh-cn): Update vue.mdx #8380

Merged
merged 4 commits into from
May 24, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions src/content/docs/zh-cn/guides/integrations-guide/vue.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -209,4 +209,26 @@ export default defineConfig({
// ...
integrations: [vue({ devtools: true })],
});
```

#### 自定义 Vue DevTools

<p><Since pkg="@astrojs/vue" v="4.3.0" /></p>

为了更多的自定义选项,你可以传递 [Vue DevTools Vite 插件](https://devtools-next.vuejs.org/guide/vite-plugin#options) 支持的选项。(注意:`appendTo` 不被支持。)
huyikai marked this conversation as resolved.
Show resolved Hide resolved

例如,如果你不使用 Visual Studio Code,你可以设置 `launchEditor` 为你偏好的编辑器:
huyikai marked this conversation as resolved.
Show resolved Hide resolved

```js title="astro.config.mjs"
import { defineConfig } from "astro/config";
import vue from "@astrojs/vue";

export default defineConfig({
// ...
integrations: [
vue({
devtools: { launchEditor: "webstorm" },
}),
],
});
```
Loading