[Improvement][ui] improving to find current version identifier(#15815)

This commit is contained in:
1462719985@qq.com 2024-05-06 19:01:02 +08:00
parent 00fbaca7d8
commit b9fedfc61a
2 changed files with 5 additions and 1 deletions

View File

@ -17,6 +17,9 @@
package org.apache.dolphinscheduler.api.controller;
import static org.apache.dolphinscheduler.api.enums.Status.QUERY_PLUGINS_ERROR;
import static org.apache.dolphinscheduler.api.enums.Status.VERSION_INFO_STATE_ERROR;
import org.apache.dolphinscheduler.api.dto.ProductInfoDto;
import org.apache.dolphinscheduler.api.exceptions.ApiException;
import org.apache.dolphinscheduler.api.service.UiPluginService;

View File

@ -21,6 +21,7 @@ import Card from '@/components/card'
import { NSelect, NSpace, NSwitch } from 'naive-ui'
import { useUserStore } from '@/store/user/user'
import { queryProductInfo } from '@/service/modules/ui-plugins'
import {UserInfoRes} from "@/service/modules/users/types";
const userStore = useUserStore()
const about = defineComponent({
@ -34,7 +35,7 @@ const about = defineComponent({
info.value = productInfo.version
}
onMounted( () => {
queryProduct(userStore.getUserInfo.id)
queryProduct((userStore.getUserInfo as UserInfoRes).id)
})
return { queryProduct, info }