From 5499105ca2b08d074e3fe2e9b1a73314f3b291aa Mon Sep 17 00:00:00 2001 From: gengxin Date: Wed, 19 Feb 2025 14:34:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/method.js | 1 + src/api/request.js | 4 +++- src/components/project/ProjectManagerNewTeacher.vue | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/api/method.js b/src/api/method.js index 31bd834c..adef6705 100644 --- a/src/api/method.js +++ b/src/api/method.js @@ -168,6 +168,7 @@ function autoComma(number) { //节流 function throttle(fn, delay = 200) { + console.log("throttle gx start") var timer = null; return function () { console.log('throttle') diff --git a/src/api/request.js b/src/api/request.js index 194eb187..703fa1bc 100644 --- a/src/api/request.js +++ b/src/api/request.js @@ -350,7 +350,9 @@ export function usePage(_url, params, init = true, listing = false) { }; } export function useThrottlePage(_url, params = {}, init = true) { - + console.log("useThrottlePage gx _url",_url) + console.log("useThrottlePage gx params",params) + console.log("useThrottlePage gx init",init) const state = reactive({ data: [], loading: false, diff --git a/src/components/project/ProjectManagerNewTeacher.vue b/src/components/project/ProjectManagerNewTeacher.vue index c6ad9a18..ba5c9f30 100644 --- a/src/components/project/ProjectManagerNewTeacher.vue +++ b/src/components/project/ProjectManagerNewTeacher.vue @@ -70,6 +70,7 @@ const options = computed(() => userList.value.filter(e => !(props.value + '').in watch(props, init) function init() { + console.log("init gx props value",props.value) //第一次进来 编辑赋值 if (props.value && (props.value + '') !== selectOptions.value.map(e => e.value).join(',')) { selectOptions.value = (props.value + '').split(',').map((e, i) => ({label: props.name.split(',')[i], value: e})) @@ -77,7 +78,7 @@ function init() { } onMounted(() => { - console.log('onMounted') + console.log('onMounted gx init') init() })