修复若干bug
This commit is contained in:
@@ -20,7 +20,7 @@ import Footer from '@/views/components/footer.vue'
|
||||
import { getKingdeeNewsDetail, getCompanyNewsDetail } from '@/api/newscenter'
|
||||
|
||||
const route = useRoute()
|
||||
const article = ref({})
|
||||
const article = ref<any>({})
|
||||
const loading = ref(true)
|
||||
|
||||
onMounted(async () => {
|
||||
@@ -32,11 +32,11 @@ onMounted(async () => {
|
||||
const path = route.path
|
||||
|
||||
if (path.includes('companyNews')) {
|
||||
res = await getCompanyNewsDetail(id)
|
||||
res = await getCompanyNewsDetail(id as string)
|
||||
} else if (path.includes('kingdeeNews')) {
|
||||
res = await getKingdeeNewsDetail(id)
|
||||
res = await getKingdeeNewsDetail(id as string)
|
||||
} else {
|
||||
res = await getKingdeeNewsDetail(id)
|
||||
res = await getKingdeeNewsDetail(id as string)
|
||||
}
|
||||
|
||||
if (res.code === 200) {
|
||||
|
||||
Reference in New Issue
Block a user