diff --git a/command.txt b/command.txt new file mode 100644 index 0000000..da03602 --- /dev/null +++ b/command.txt @@ -0,0 +1 @@ +yarn dev --host 0.0.0.0 --port 10086 \ No newline at end of file diff --git a/src/components/ec_api/TabArea.vue b/src/components/ec_api/TabArea.vue index 9d27314..fd673b0 100644 --- a/src/components/ec_api/TabArea.vue +++ b/src/components/ec_api/TabArea.vue @@ -292,6 +292,7 @@ async function get_suggest(options = {sale_type: saleType.value, pay_type: payTy }) }) UserApiData.value.api[activeTab.value].reload = !result + markIsChecked() } ).catch((err) => { console.log(err) @@ -428,8 +429,9 @@ function test() { console.log('UserApiData.value', UserApiData.value) console.log('activeTab.value', activeTab.value) console.log('ApiTableRef.value', ApiTableRef.value) + console.log('ApiTableRef.value', ApiTableRef.value[0].$parent.label) // store.state.ecApiModule.ec_api_data.api = [] - store.state.ecApiModule.show_tab_area = false + // store.state.ecApiModule.show_tab_area = false } // 计算属性用来处理场次接口获取的数据,并同步给对应的选择模块 @@ -538,6 +540,7 @@ const levelList = computed(() => { // 监测ec_select_api的变化 生成新的本地数据,如果当前选中的标签被取消勾选,则选择剩下标签的第一个 watch(() => store.state.ecApiModule.ec_api_data.api, (oldValue, newValue) => { + console.log('watch.store.state.ecApiModule.ec_api_data.api') // 接口数据变化后初始化本地数据 initApiData() // 处理空标签逻辑 @@ -550,6 +553,7 @@ watch(() => store.state.ecApiModule.ec_api_data.api, (oldValue, newValue) => { // 监测activeTab, 如果切换标签页,则执行自动勾选的函数 watch(activeTab, () => { + console.log('watch.activeTab') markIsChecked() get_timestamp() get_suggest() @@ -679,6 +683,9 @@ const ace_options = { {{ send_btn }} + + + diff --git a/src/request/config.js b/src/request/config.js index 46210e6..0ffc86b 100644 --- a/src/request/config.js +++ b/src/request/config.js @@ -10,7 +10,7 @@ export default { 'Content-Type': 'application/json;charset=UTF-8', 'Authorization': 'token 4e63b8854974c1fdac9deb891fd74dc145b53f85' }, - timeout: 10000, + timeout: 60000, withCredentials: true, responseType: 'json', }