mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 03:16:44 +08:00
日志
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user