webapp: create interface for NtpStatus
This commit is contained in:
parent
386b6b73bd
commit
19ee117a53
7
webapp/src/types/NtpStatus.ts
Normal file
7
webapp/src/types/NtpStatus.ts
Normal file
@ -0,0 +1,7 @@
|
||||
export interface NtpStatus {
|
||||
ntp_server: string,
|
||||
ntp_timezone: string,
|
||||
ntp_timezone_descr: string
|
||||
ntp_status: boolean,
|
||||
ntp_localtime: string
|
||||
}
|
||||
@ -67,18 +67,13 @@
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import type { NtpStatus } from "@/types/NtpStatus";
|
||||
|
||||
export default defineComponent({
|
||||
data() {
|
||||
return {
|
||||
dataLoading: true,
|
||||
ntpDataList: {
|
||||
ntp_server: "",
|
||||
ntp_timezone: "",
|
||||
ntp_timezone_descr: "",
|
||||
ntp_status: false,
|
||||
ntp_localtime: ""
|
||||
},
|
||||
ntpDataList: {} as NtpStatus,
|
||||
};
|
||||
},
|
||||
created() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user