refactor: define setup in script label

This commit is contained in:
zchengo
2023-01-25 18:31:18 +08:00
parent c1a3f31cad
commit 8f8ac3dda0
12 changed files with 1562 additions and 1822 deletions
+3 -10
View File
@@ -8,18 +8,11 @@
</div>
</template>
<script>
<script setup>
import router from '../router/index';
export default {
setup() {
const refresh = () => {
router.push('/')
}
return {
refresh
}
}
const refresh = () => {
router.push('/')
}
</script>