|
@@ -35,7 +35,7 @@
|
|
|
import { ref, onMounted } from 'vue'
|
|
|
import dividerIndex from '../../../components/windows/dividerIndex.vue'
|
|
|
import { jtjs } from '@/api/api'
|
|
|
-import { get } from 'lodash-es'
|
|
|
+import { get, head } from 'lodash-es'
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
|
const list = ref<any[]>([])
|
|
|
const active = ref('1')
|
|
@@ -81,6 +81,7 @@ const init = async () => {
|
|
|
const result = await jtjs.gsjs()
|
|
|
if (result.errcode == 0) {
|
|
|
list.value = get(result, 'data', [])
|
|
|
+ active.value = get(head(get(result, 'data', [])), 'id', '1')
|
|
|
}
|
|
|
}
|
|
|
const toOpen = () => {
|