refactor Setting
This commit is contained in:
@@ -5,7 +5,21 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { Copyright } from "timi-web";
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user