// 验证许可
<template>
	<a-result
		status="500"
		:title="
			getI18n(
				'system',
				'SYSTEM_License_Product_Not_Configured_With_License'
			)
		"
		:sub-title="getI18n('system', 'SYSTEM_License_Activation_Updates')"
		class="verify-license"
	>
		<template #extra>
			<a-button type="primary" @click="onGotoClick">
				{{ getI18n('system', 'SYSTEM_License_Go_To_Verify') }}
				<a-statistic-countdown
					v-if="deadline"
					:value="deadline"
					format="ss"
					@finish="onFinish"
				/>
			</a-button>

			<a-button @click="onGotoCcancel">
				{{ getI18n('common', 'Common_Remove') }}
			</a-button>
		</template>
	</a-result>
</template>
<script lang="ts">
import router from '@/router'
import { defineComponent, ref } from 'vue'
import { getI18n } from '@/utils/i18n'

export default defineComponent({
	name: 'VerifyLicense40398',
	components: {},
	props: {},
	emits: [],
	setup() {
		const deadline = ref<any>(Date.now() + 1000 * 5)
		const onFinish = () => {
			router.push({
				name: 'License40399',
			})
		}
		const onGotoClick = () => {
			router.push({
				name: 'License40399',
			})
		}
		const onGotoCcancel = () => {
			deadline.value = undefined
		}
		return {
			getI18n,
			deadline,
			onFinish,
			onGotoClick,
			onGotoCcancel,
		}
	},
})
</script>
