feat: 初始化
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts" setup>
|
<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';
|
import { Button, Card, message, notification, Space } from 'ant-design-vue';
|
||||||
|
|
||||||
@@ -30,6 +30,12 @@ function notify(type: NotificationType) {
|
|||||||
type,
|
type,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const openAlert = () => {
|
||||||
|
alert({
|
||||||
|
content: 'How many roads must a man walk down',
|
||||||
|
})
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -51,6 +57,7 @@ function notify(type: NotificationType) {
|
|||||||
<Button danger @click="error"> 错误 </Button>
|
<Button danger @click="error"> 错误 </Button>
|
||||||
<Button @click="warning"> 警告 </Button>
|
<Button @click="warning"> 警告 </Button>
|
||||||
<Button @click="success"> 成功 </Button>
|
<Button @click="success"> 成功 </Button>
|
||||||
|
<Button @click="openAlert"> 打开Alert </Button>
|
||||||
</Space>
|
</Space>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ export default defineConfig(async () => {
|
|||||||
vite: {
|
vite: {
|
||||||
server: {
|
server: {
|
||||||
proxy: {
|
proxy: {
|
||||||
|
port: 8866,
|
||||||
'/api': {
|
'/api': {
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||||
|
|||||||
Reference in New Issue
Block a user