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() })