Files
timi-web/examples/Root.vue
2026-04-30 11:04:28 +08:00

33 lines
520 B
Vue

<template>
<div class="root">
<copyright />
</div>
</template>
<script lang="ts" setup>
import {axios, Copyright, SettingMapper} from "timi-web";
import CommonAPI from "../src/api/CommonAPI";
onMounted(async () => {
const result = await CommonAPI.settingMap({
"SYSTEM": [
"SETTING_TTL"
]
});
SettingMapper.appendSettingMap(result);
console.log(SettingMapper.getValue("SYSTEM", "SETTING_TTL").value);
})
</script>
<style lang="less" scoped>
.root {
width: 80%;
.sp {
height: 520px;
}
}
</style>