refactor API export
This commit is contained in:
+6
-9
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user