Co-authored-by: imizao <lai.jinwen@vpclub.cn>
@ -72,9 +72,9 @@ const err = (err: AxiosError): Promise<AxiosError> => {
}
service.interceptors.request.use((config: AxiosRequestConfig<any>) => {
config.headers && (config.headers.sessionId = userStore.getSessionId)
const language = cookies.get('language')
config.headers = config.headers || {}
config.headers.sessionId = userStore.getSessionId
if (language) config.headers.language = language
return config
@ -109,7 +109,21 @@ export default defineComponent({
</div>
) : (
<NSpace justify='center'>
<NSpace vertical>
<NSpin show={true} />
<NSpace>
<NButton
type='info'
size='small'
text
style={{ marginRight: '15px' }}
onClick={this.handleReturn}
class='btn-cancel'
>
{t('resource.file.return')}
</NButton>
</NSpace>
)}
</Card>