|
@@ -8,12 +8,11 @@ import Loading from '@/components/loading.uvue'
|
|
|
import { config } from '@/config'
|
|
import { config } from '@/config'
|
|
|
import { router } from "@/.cool";
|
|
import { router } from "@/.cool";
|
|
|
const isLoading = ref(true)
|
|
const isLoading = ref(true)
|
|
|
-const isDev = process.env.NODE_ENV == "development";
|
|
|
|
|
const visible = ref<boolean>(false)
|
|
const visible = ref<boolean>(false)
|
|
|
const dataList = ref<SubjectCatalogResult[]>([])
|
|
const dataList = ref<SubjectCatalogResult[]>([])
|
|
|
const catalog = ref<SubjectCatalogResult>()
|
|
const catalog = ref<SubjectCatalogResult>()
|
|
|
async function getDataList() {
|
|
async function getDataList() {
|
|
|
- const res = await fetchSubjectConfigInfo({ id: isDev ? '69c49329091547710d451f9d' : '69c49329091547710d451f9d' })
|
|
|
|
|
|
|
+ const res = await fetchSubjectConfigInfo({ id: '69c49329091547710d451f9d' })
|
|
|
dataList.value = res.catalogList || []
|
|
dataList.value = res.catalogList || []
|
|
|
catalog.value = res?.catalogList?.[0]
|
|
catalog.value = res?.catalogList?.[0]
|
|
|
}
|
|
}
|