|
@@ -97,7 +97,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
import { reactive, ref, unref, computed, onMounted } from 'vue';
|
|
import { reactive, ref, unref, computed, onMounted } from 'vue';
|
|
|
-
|
|
|
|
|
|
|
+ import { useGlobSetting } from '/@/hooks/setting';
|
|
|
import { Checkbox, Form, Input, Row, Col, Button, } from 'ant-design-vue';// Divider
|
|
import { Checkbox, Form, Input, Row, Col, Button, } from 'ant-design-vue';// Divider
|
|
|
// import {
|
|
// import {
|
|
|
// GithubFilled,
|
|
// GithubFilled,
|
|
@@ -124,7 +124,8 @@
|
|
|
const { notification, createErrorModal } = useMessage();
|
|
const { notification, createErrorModal } = useMessage();
|
|
|
const { prefixCls } = useDesign('login');
|
|
const { prefixCls } = useDesign('login');
|
|
|
const userStore = useUserStore();
|
|
const userStore = useUserStore();
|
|
|
-
|
|
|
|
|
|
|
+ const globSetting = useGlobSetting();
|
|
|
|
|
+ const urlPrefix = globSetting.urlPrefix;
|
|
|
const { setLoginState, getLoginState } = useLoginState();
|
|
const { setLoginState, getLoginState } = useLoginState();
|
|
|
const { getFormRules } = useFormRules();
|
|
const { getFormRules } = useFormRules();
|
|
|
console.log(getFormRules, 'getFormRules')
|
|
console.log(getFormRules, 'getFormRules')
|
|
@@ -136,7 +137,7 @@
|
|
|
return v.toString(16);
|
|
return v.toString(16);
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
- const baseURL = ''
|
|
|
|
|
|
|
+ const baseURL = urlPrefix || './'
|
|
|
let getCode = '/service/manage/getLoginAuthCode'
|
|
let getCode = '/service/manage/getLoginAuthCode'
|
|
|
const imgKey = ref(guid());
|
|
const imgKey = ref(guid());
|
|
|
const refer = () => (imgKey.value = guid());
|
|
const refer = () => (imgKey.value = guid());
|