feat: 初始化
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CI / CI OK (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Deploy Website on push / Rerun on failure (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled

This commit is contained in:
2025-05-10 01:53:36 +08:00
parent 90625782c0
commit 44dfee367b
2 changed files with 9 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { Page } from '@vben/common-ui';
import { alert, Page } from '@vben/common-ui';
import { Button, Card, message, notification, Space } from 'ant-design-vue';
@@ -30,6 +30,12 @@ function notify(type: NotificationType) {
type,
});
}
const openAlert = () => {
alert({
content: 'How many roads must a man walk down',
})
}
</script>
<template>
@@ -51,6 +57,7 @@ function notify(type: NotificationType) {
<Button danger @click="error"> 错误 </Button>
<Button @click="warning"> 警告 </Button>
<Button @click="success"> 成功 </Button>
<Button @click="openAlert"> 打开Alert </Button>
</Space>
</Card>

View File

@@ -6,6 +6,7 @@ export default defineConfig(async () => {
vite: {
server: {
proxy: {
port: 8866,
'/api': {
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),