refactor API export

This commit is contained in:
Timi
2026-08-21 16:34:39 +08:00
parent 175838f7c5
commit 98ab992728
11 changed files with 335 additions and 399 deletions
+6 -9
View File
@@ -1,5 +1,10 @@
<template>
<div class="root">
<pass-time-label :timestamp="1786694772700" underline />
<br>
<pass-time-label :timestamp="1786694772700" only-date />
<br>
<pass-time-label :timestamp="1786694772700" only-time />
<copyright />
</div>
</template>
@@ -7,17 +12,9 @@
<script lang="ts" setup>
import {axios, Copyright, SettingMapper} from "timi-web";
import CommonAPI from "../src/api/CommonAPI";
import PassTimeLabel from "../src/components/passtime-label/index.vue";
onMounted(async () => {
const result = await CommonAPI.settingMap({
"SYSTEM": [
"SETTING_TTL"
]
});
SettingMapper.appendSettingMap(result);
console.log(SettingMapper.getValue("SYSTEM", "SETTING_TTL").value);
})
</script>