初始化项目
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
-->
|
||||
<template>
|
||||
<div class="anticon" :class="getAppLogoClass" @click="goHome">
|
||||
<img src="@jeesite/assets/images/logo.png" v-show="!!!showTitle" />
|
||||
<img src="@jeesite/assets/images/logo.png" v-show="showTitle" />
|
||||
<div class="ml-2 truncate md:opacity-100" :class="getTitleClass" v-show="showTitle">
|
||||
{{ getTitle }}
|
||||
</div>
|
||||
|
||||
@@ -1,19 +1,6 @@
|
||||
<template>
|
||||
<RouterView>
|
||||
<template #default="{ Component, route }">
|
||||
<!--<transition
|
||||
:name="
|
||||
getTransitionName({
|
||||
route,
|
||||
openCache,
|
||||
enableTransition: getEnableTransition,
|
||||
cacheTabs: getCaches,
|
||||
def: getBasicTransition,
|
||||
})
|
||||
"
|
||||
mode="out-in"
|
||||
appear
|
||||
>-->
|
||||
<keep-alive v-if="openCache" :include="getCaches">
|
||||
<component :is="Component" :key="route.fullPath" />
|
||||
</keep-alive>
|
||||
|
||||
@@ -38,20 +38,15 @@
|
||||
<Button type="link" size="small" @click="setLoginState(LoginStateEnum.RESET_PASSWORD)">
|
||||
{{ t('sys.login.forgetPassword') }}
|
||||
</Button>
|
||||
<!--<Button type="link" size="small" @click="setLoginState(LoginStateEnum.REGISTER)">
|
||||
{{ t('sys.login.registerButton') }}
|
||||
</Button>-->
|
||||
</FormItem>
|
||||
</ACol>
|
||||
</ARow>
|
||||
|
||||
<FormItem class="enter-x">
|
||||
<Button type="primary" size="large" block @click="handleLogin" :loading="loading">
|
||||
<Button type="primary" size="defult" block @click="handleLogin" :loading="loading">
|
||||
{{ t('sys.login.loginButton') }}
|
||||
</Button>
|
||||
</FormItem>
|
||||
|
||||
|
||||
</Form>
|
||||
</div>
|
||||
</template>
|
||||
@@ -94,7 +89,7 @@
|
||||
const emit = defineEmits(['demoMode']);
|
||||
|
||||
const formData = reactive({
|
||||
account: 'system',
|
||||
account: '',
|
||||
password: '',
|
||||
validCode: '',
|
||||
});
|
||||
|
||||
@@ -253,12 +253,7 @@ function createAxios(opt?: Partial<CreateAxiosOptions>) {
|
||||
authenticationHeader: 'x-token',
|
||||
authenticationScheme: '',
|
||||
// 请求超时时间,默认3分钟
|
||||
timeout: 3 * 60 * 1000,
|
||||
// 基础接口地址
|
||||
// baseURL: globSetting.apiUrl,
|
||||
// 默认请求头设置
|
||||
// headers: { 'Content-Type': ContentTypeEnum.JSON },
|
||||
// 如果是form-data格式
|
||||
timeout: 15 * 60 * 1000,
|
||||
headers: {
|
||||
'content-type': ContentTypeEnum.FORM_URLENCODED,
|
||||
'x-requested-with': 'XMLHttpRequest',
|
||||
@@ -297,11 +292,3 @@ function createAxios(opt?: Partial<CreateAxiosOptions>) {
|
||||
);
|
||||
}
|
||||
export const defHttp = createAxios();
|
||||
|
||||
// other api url
|
||||
// export const otherHttp = createAxios({
|
||||
// requestOptions: {
|
||||
// apiUrl: 'xxx',
|
||||
// urlPrefix: 'xxx',
|
||||
// },
|
||||
// });
|
||||
|
||||
Reference in New Issue
Block a user