style: 调整 Vue 组件内 script 标签到 template 标签之前
1.template 和 style 挨在一起,便于样式调整 2.打开文件,可以便于修改 Script 代码
This commit is contained in:
@@ -1,9 +1,3 @@
|
||||
<template>
|
||||
<a-spin :loading="loading" :tip="isLogin() ? $t('bind.ing') : $t('login.ing')">
|
||||
<div></div>
|
||||
</a-spin>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { useUserStore } from '@/store';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
@@ -83,6 +77,15 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<a-spin
|
||||
:loading="loading"
|
||||
:tip="isLogin() ? $t('bind.ing') : $t('login.ing')"
|
||||
>
|
||||
<div></div>
|
||||
</a-spin>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
export default {
|
||||
name: 'SocialCallback',
|
||||
|
Reference in New Issue
Block a user