update:动态表格优化
This commit is contained in:
@@ -15,6 +15,8 @@ const service = axios.create({
|
||||
|
||||
service.interceptors.request.use(
|
||||
(config) => {
|
||||
config.headers['company'] = 'carsafe';
|
||||
config.headers['jobNumber'] = $wujie?.props?.USER_ID || '';
|
||||
config.headers['token'] = $wujie?.props?.TOKEN || '';
|
||||
config.headers['userId'] = $wujie?.props?.USER_ID || '';
|
||||
config.headers['tenantId'] = $wujie?.props?.TENANT_ID || '';
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted } from 'vue';
|
||||
import { ref, onMounted, watch } from 'vue';
|
||||
import FormItem from './formItem.vue';
|
||||
import { getFormConfigureApi } from '@/api/system/systemData';
|
||||
import { isPhone, isEmail, hasNoSpecialChar, length20, length100 } from '@/utils/validate';
|
||||
@@ -168,6 +168,10 @@ const setOptionsFun = (key: string, options: any[]) => {
|
||||
});
|
||||
};
|
||||
|
||||
watch(() => props.tableName, () => {
|
||||
getHeadDataFun();
|
||||
});
|
||||
|
||||
defineExpose({
|
||||
getFormDataFun,
|
||||
setFormDataFun,
|
||||
|
||||
Reference in New Issue
Block a user