fix: 国际化头部参数错误
This commit is contained in:
parent
3970913f43
commit
a0b6661c5f
@ -35,8 +35,8 @@ service.interceptors.request.use(
|
||||
config.headers[LinkTokenKey] = linkToken
|
||||
}
|
||||
|
||||
if (store.getters.language) {
|
||||
config.headers['Accept-Language'] = store.getters.language
|
||||
if (i18n.locale) {
|
||||
config.headers['Accept-Language'] = i18n.locale
|
||||
}
|
||||
// 增加loading
|
||||
|
||||
|
||||
@ -34,7 +34,7 @@
|
||||
:load-options="loadDepts"
|
||||
:auto-load-root-options="false"
|
||||
:placeholder="$t('user.choose_org')"
|
||||
@open="testOpen"
|
||||
@open="filterData"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('commons.role')" prop="roleIds">
|
||||
@ -260,7 +260,7 @@ export default {
|
||||
backToList() {
|
||||
this.$router.push({ name: '用户管理' })
|
||||
},
|
||||
testOpen(instanceId) {
|
||||
filterData(instanceId) {
|
||||
const results = this.depts.map(node => {
|
||||
if (node.hasChildren) {
|
||||
node.children = null
|
||||
|
||||
@ -175,7 +175,7 @@ export default {
|
||||
}
|
||||
],
|
||||
searchConfig: {
|
||||
useQuickSearch: false,
|
||||
useQuickSearch: true,
|
||||
quickPlaceholder: '按姓名搜索',
|
||||
components: [
|
||||
{ field: 'nick_name', label: '姓名', component: 'FuComplexInput' },
|
||||
|
||||
Loading…
Reference in New Issue
Block a user