redirect
This commit is contained in:
parent
e0671b9995
commit
feb64ad2f1
1 changed files with 7 additions and 1 deletions
|
|
@ -1,16 +1,22 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
|
import router from '@/router/index.js'
|
||||||
|
|
||||||
|
|
||||||
const value = ref(null)
|
const value = ref(null)
|
||||||
const options = [
|
const options = [
|
||||||
{ label: 'Placeholder 1', value: 'Placeholder 1' },
|
{ label: 'Placeholder 1', value: 'Placeholder 1' },
|
||||||
{ label: 'Placeholder 2', value: 'Placeholder 2' },
|
{ label: 'Placeholder 2', value: 'Placeholder 2' },
|
||||||
]
|
]
|
||||||
|
|
||||||
|
const addMerch = () => {
|
||||||
|
router.push({ name: 'addMerch' })
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="toolbar">
|
<div class="toolbar">
|
||||||
<n-button type="primary" class="toolbar-item"> Add merch </n-button>
|
<n-button type="primary" class="toolbar-item" @click="addMerch"> Add merch </n-button>
|
||||||
|
|
||||||
<div class="search-wrapper toolbar-item">
|
<div class="search-wrapper toolbar-item">
|
||||||
<n-input placeholder="Search..." clearable />
|
<n-input placeholder="Search..." clearable />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue