Skip to content

Commit

Permalink
Fix ts error
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Wang <i@ryanc.cc>
  • Loading branch information
ruibaby committed Jul 16, 2023
1 parent 5809a22 commit e372db1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion console/src/modules/system/plugins/PluginDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const route = useRoute();
const tabs = ref<PluginTab[]>(cloneDeep(initialTabs.value));
const activeTab = useRouteQuery<string>("tab", tabs.value[0].id);
provide<Ref<string | undefined>>("activeTab", activeTab);
provide<Ref<string>>("activeTab", activeTab);
const { data: plugin } = useQuery({
queryKey: ["plugin", route.params.name],
Expand Down
2 changes: 1 addition & 1 deletion console/src/modules/system/plugins/tabs/Setting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { toRaw } from "vue";
const { t } = useI18n();
const queryClient = useQueryClient();
const group = inject<Ref<string | undefined>>("activeTab", ref());
const group = inject<Ref<string>>("activeTab", ref("basic"));
const plugin = inject<Ref<Plugin | undefined>>("plugin");
const setting = inject<Ref<Setting | undefined>>("setting", ref());
const saving = ref(false);
Expand Down

0 comments on commit e372db1

Please sign in to comment.