Files
cashier-web/src/views/user/active/indexconfig/component/AddButton.vue
2025-03-08 18:27:28 +08:00

19 lines
545 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<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>