style(api): 统一代码风格并修复语法问题

- 统一import语句的空格格式
- 修复分号缺失问题
- 调整函数参数换行格式以符合规范
- 删除多余空行保持代码整洁
- 修复字符串拼接的换行格式问题
This commit is contained in:
2026-01-21 00:26:14 +08:00
parent 7a37f66081
commit 82ac209505
559 changed files with 40550 additions and 37977 deletions

View File

@@ -6,34 +6,34 @@
>
<a-tabs v-model:active-key="active">
<a-tab-pane tab="网站设置" key="website">
<Website v-model:value="active" :data="data"/>
<Website v-model:value="active" :data="data" />
</a-tab-pane>
<a-tab-pane tab="上传设置" key="upload">
<Upload v-model:value="active" :data="data"/>
<Upload v-model:value="active" :data="data" />
</a-tab-pane>
<a-tab-pane tab="短信设置" key="sms">
<Sms v-model:value="active" :data="data"/>
<Sms v-model:value="active" :data="data" />
</a-tab-pane>
<a-tab-pane tab="注册设置" key="register">
<Register :value="active" :data="data"/>
<Register :value="active" :data="data" />
</a-tab-pane>
<a-tab-pane tab="微信小程序" key="mp-weixin">
<MpWeixin :value="active" :data="data"/>
<MpWeixin :value="active" :data="data" />
</a-tab-pane>
<a-tab-pane tab="企业微信" key="wx-work">
<WxWork :value="active" :data="data"/>
<WxWork :value="active" :data="data" />
</a-tab-pane>
<a-tab-pane tab="微信公众号" key="wx-official">
<WxOfficial :value="active" :data="data"/>
<WxOfficial :value="active" :data="data" />
</a-tab-pane>
<a-tab-pane tab="隐私与安全" key="privacy">
<Privacy :value="active" :data="data"/>
<Privacy :value="active" :data="data" />
</a-tab-pane>
<a-tab-pane tab="打印设置" key="printer">
<Printer :value="active" :data="data"/>
<Printer :value="active" :data="data" />
</a-tab-pane>
<a-tab-pane tab="更新缓存" key="clear">
<Clear :value="active" :data="data"/>
<Clear :value="active" :data="data" />
</a-tab-pane>
</a-tabs>
</a-card>
@@ -41,44 +41,44 @@
</template>
<script lang="ts" setup>
import {ref, watch} from 'vue';
import {Setting} from '@/api/system/setting/model';
import Website from './components/website.vue';
import Upload from './components/upload.vue';
import Register from './components/register.vue';
import WxWork from './components/wx-work.vue';
import WxOfficial from './components/wx-official.vue';
import MpWeixin from './components/mp-weixin.vue';
import Privacy from './components/privacy.vue';
// import Payment from './components/payment.vue';
import Sms from './components/sms.vue';
import Printer from './components/printer.vue';
import Clear from './components/clear.vue';
import {getSettingByKey} from '@/api/system/setting';
import { ref, watch } from 'vue';
import { Setting } from '@/api/system/setting/model';
import Website from './components/website.vue';
import Upload from './components/upload.vue';
import Register from './components/register.vue';
import WxWork from './components/wx-work.vue';
import WxOfficial from './components/wx-official.vue';
import MpWeixin from './components/mp-weixin.vue';
import Privacy from './components/privacy.vue';
// import Payment from './components/payment.vue';
import Sms from './components/sms.vue';
import Printer from './components/printer.vue';
import Clear from './components/clear.vue';
import { getSettingByKey } from '@/api/system/setting';
// tab页选中
const active = ref('privacy');
// tab页选中
const active = ref('privacy');
const data = ref<Setting>();
const data = ref<Setting>();
const reload = () => {
getSettingByKey(active.value).then(res => {
data.value = res;
})
};
const reload = () => {
getSettingByKey(active.value).then((res) => {
data.value = res;
});
};
reload();
reload();
watch(
() => active.value,
() => {
reload();
}
);
watch(
() => active.value,
() => {
reload();
}
);
</script>
<script lang="ts">
export default {
name: 'Setting'
};
export default {
name: 'Setting'
};
</script>