Skip to content

Commit

Permalink
非常重要——修复严重bug(访问online菜单报401 token失效)
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnieholt committed Oct 26, 2022
1 parent cfbcca5 commit 5e39f83
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"gen:icon": "esno ./build/generate/icon/index.ts"
},
"dependencies": {
"@jeecg/online": "3.4.3-beta",
"@jeecg/online": "3.4.3-GA",
"@iconify/iconify": "^2.2.1",
"@ant-design/colors": "^6.0.0",
"@ant-design/icons-vue": "^6.1.0",
Expand Down
14 changes: 7 additions & 7 deletions src/components/Form/src/hooks/useForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { ref, onUnmounted, unref, nextTick, watch } from 'vue';
import { isProdMode } from '/@/utils/env';
import { error } from '/@/utils/log';
import { getDynamicProps, getValueType } from '/@/utils';
// import { add } from "/@/components/Form/src/componentMap";
// //集成online专用控件
// import { OnlineSelectCascade, LinkTableCard, LinkTableSelect } from '@jeecg/online';
import { add } from "/@/components/Form/src/componentMap";
//集成online专用控件
import { OnlineSelectCascade, LinkTableCard, LinkTableSelect } from '@jeecg/online';

export declare type ValidateFields = (nameList?: NamePath[]) => Promise<Recordable>;

Expand All @@ -18,10 +18,10 @@ export function useForm(props?: Props): UseFormReturnType {
const formRef = ref<Nullable<FormActionType>>(null);
const loadedRef = ref<Nullable<boolean>>(false);

// //集成online专用控件
// add("OnlineSelectCascade", OnlineSelectCascade)
// add("LinkTableCard", LinkTableCard)
// add("LinkTableSelect", LinkTableSelect)
//集成online专用控件
add("OnlineSelectCascade", OnlineSelectCascade)
add("LinkTableCard", LinkTableCard)
add("LinkTableSelect", LinkTableSelect)

async function getForm() {
const form = unref(formRef);
Expand Down

0 comments on commit 5e39f83

Please # to comment.