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">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
import type { NtpStatus } from "@/types/NtpStatus";
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
dataLoading: true,
|
dataLoading: true,
|
||||||
ntpDataList: {
|
ntpDataList: {} as NtpStatus,
|
||||||
ntp_server: "",
|
|
||||||
ntp_timezone: "",
|
|
||||||
ntp_timezone_descr: "",
|
|
||||||
ntp_status: false,
|
|
||||||
ntp_localtime: ""
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user