This commit is contained in:
gengxin
2025-02-19 14:34:06 +08:00
parent 71780eac9f
commit 5499105ca2
3 changed files with 6 additions and 2 deletions

View File

@@ -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')

View File

@@ -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,

View File

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