19 lines
545 B
Vue
19 lines
545 B
Vue
<template>
|
||
<el-button type="primary" icon="Plus" @click="addEvent">新增</el-button>
|
||
<el-button type="primary" icon="Plus" @click="addEvent">下载会员充值二维码</el-button>
|
||
<br />
|
||
<div style="margin-top: 10px;">
|
||
允许充值自定义金额: <el-switch v-model="value2" class="ml-2" />
|
||
</div>
|
||
</template>
|
||
<script setup>
|
||
import { useRouter } from 'vue-router';
|
||
const router = useRouter();
|
||
const emit = defineEmits(['add']);
|
||
function toUrl(name) {
|
||
router.push({ name });
|
||
}
|
||
function addEvent() {
|
||
emit('add');
|
||
}
|
||
</script> |