admin模块接入数据库
This commit is contained in:
@@ -157,6 +157,7 @@ import { ref, onMounted, reactive, computed } from 'vue'
|
||||
import EChartsView from '@/uni_modules/charts/EChartsView.vue'
|
||||
import { fetchFinanceOverview, fetchFinanceBillSummary } from '@/services/admin/financeService.uts'
|
||||
import { fetchOrderStats } from '@/services/orderService.uts'
|
||||
import AkReq from '@/uni_modules/ak-req/ak-req.uts'
|
||||
|
||||
const dateOptions = ['最近30天', '最近7天', '本月', '本年']
|
||||
const activeDateTab = ref(0)
|
||||
@@ -237,6 +238,9 @@ function handleDateTabChange(index : number) {
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
if (AkReq.getToken() == null || AkReq.getToken() === '') {
|
||||
return
|
||||
}
|
||||
loadData()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user