|
@@ -246,10 +246,6 @@ const getColumns = (
|
|
|
]
|
|
|
}
|
|
|
|
|
|
-const onRefresh = () => {
|
|
|
- fetch(omit(fetchModel, 'refresh'))
|
|
|
-}
|
|
|
-
|
|
|
const activeCard = ref<Card>()
|
|
|
|
|
|
const setActiveCard = (v: Card) => {
|
|
@@ -283,6 +279,12 @@ const sortableResult = computed<typeof result.value>(() => {
|
|
|
return sortable
|
|
|
})
|
|
|
|
|
|
+const onRefresh = () => {
|
|
|
+ if (fetchModel.subjectCode && fetchModel.questionMainNumber) {
|
|
|
+ fetch(omit(fetchModel, 'refresh'))
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
const onConfirm = () => {
|
|
|
Object.assign(fetchModel, modelToFetchModel())
|
|
|
onRefresh()
|