修改
This commit is contained in:
@ -116,7 +116,6 @@ const getStatus = () => {
|
||||
const getAuthCode = async () => {
|
||||
const res = await AuthApi.authInfo()
|
||||
authInfo.value.license_code = res.data
|
||||
console.log(res, '码')
|
||||
}
|
||||
getAuthInfo()
|
||||
getAuthCode()
|
||||
@ -127,7 +126,6 @@ const copy = async (text) => {
|
||||
await toClipboard(text)
|
||||
ElMessage.success('复制成功')
|
||||
} catch (e) {
|
||||
console.error('复制失败', e)
|
||||
ElMessage.error('复制失败')
|
||||
}
|
||||
}
|
||||
|
||||
@ -157,7 +157,6 @@ const precisionInput = () => {
|
||||
// precision.value = dom.max * 1
|
||||
// }
|
||||
visibility.precisions = precision.value
|
||||
console.log('precision.value', visibility.precisions, precision.value)
|
||||
}
|
||||
const precisionChange = () => {}
|
||||
const draw = (e) => {
|
||||
@ -179,7 +178,6 @@ const updateDataAttr = async () => {
|
||||
}
|
||||
const precisionMaxInput = () => {
|
||||
let dom: any = document.getElementById('precision')
|
||||
console.log('maxNum.value', maxNum.value, dom.min, dom.max)
|
||||
if (maxNum.value < dom.min * 1) {
|
||||
maxNum.value = dom.min * 1
|
||||
} else if (maxNum.value > dom.max * 1) {
|
||||
@ -190,7 +188,6 @@ const precisionMaxInput = () => {
|
||||
watch(
|
||||
() => maxNum.value,
|
||||
(x, j) => {
|
||||
console.log('maxNum.value11111', 'x:' + x, 'y:' + j)
|
||||
if (!x) {
|
||||
maxNum.value = 1
|
||||
}
|
||||
|
||||
@ -350,7 +350,6 @@ const {
|
||||
loginInit,
|
||||
isDesktop
|
||||
} = useLogin() // 登录逻辑
|
||||
console.log('isDesktop', isDesktop)
|
||||
|
||||
const {
|
||||
serviceDialog,
|
||||
@ -381,7 +380,6 @@ onMounted(() => {
|
||||
let { isSeverInit, severError } = ipcRenderer.sendSync('judgment-isSeverInit')
|
||||
// 如果服务端未初始化,等待初始化完成
|
||||
if (isSeverInit) {
|
||||
console.log('severError', severError)
|
||||
if (severError) {
|
||||
ElMessage.error(severError)
|
||||
return
|
||||
@ -420,7 +418,6 @@ const getAuthInfo = async () => {
|
||||
if (typeof res.data === 'object') {
|
||||
authInfo.value.generateTime = res.data.generateTime
|
||||
authInfo.value.expireTime = res.data.expireTime
|
||||
console.log(authInfo.value.expireTime, '授权时间222')
|
||||
getStatus2()
|
||||
getStatus(res.data.expireTime)
|
||||
}
|
||||
@ -530,7 +527,6 @@ const getStatus2 = () => {
|
||||
const timestamp = new Date(authInfo.value.expireTime).getTime()
|
||||
|
||||
const currentTimestamp = Date.now()
|
||||
console.log('timestamp', timestamp > currentTimestamp)
|
||||
if (timestamp > currentTimestamp) {
|
||||
authInfo.value.status = true
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user