Skip to content

Commit

Permalink
[Improvement][ui] improving to find current version identifier(#15815
Browse files Browse the repository at this point in the history
  • Loading branch information
pusl6 committed May 6, 2024
1 parent 00fbaca commit b9fedfc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion dolphinscheduler-ui/src/views/about/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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 }
Expand Down

0 comments on commit b9fedfc

Please sign in to comment.