|
|
@@ -220,7 +220,8 @@
|
|
|
type RangeValue = [string, string] | undefined;
|
|
|
|
|
|
const filters = ref({
|
|
|
- target: '',
|
|
|
+ // undefined 才能让 antd Select 显示 placeholder(空字符串会被当成已选中空值)
|
|
|
+ target: undefined as string | undefined,
|
|
|
intervalValue: '24',
|
|
|
amountOp: DEFAULT_COMPARE_OPERATOR,
|
|
|
amountValue: '10000',
|
|
|
@@ -495,7 +496,7 @@
|
|
|
|
|
|
const handleReset = async () => {
|
|
|
filters.value = {
|
|
|
- target: '',
|
|
|
+ target: undefined,
|
|
|
intervalValue: '24',
|
|
|
amountOp: DEFAULT_COMPARE_OPERATOR,
|
|
|
amountValue: '10000',
|