|
@@ -9,7 +9,7 @@ export const StatisticsStore = defineStore('statistics', () => {
|
|
|
if (skip) cond.skip = skip
|
|
|
if (limit) cond.limit = limit
|
|
|
cond = { ...cond, ...info }
|
|
|
- const res = await axios.$get(`${url}`, cond)
|
|
|
+ const res = await axios.$get(`${url}/work`, cond)
|
|
|
return res
|
|
|
}
|
|
|
const user = async ({ skip = 0, limit = undefined, ...info } = {}) => {
|
|
@@ -17,7 +17,7 @@ export const StatisticsStore = defineStore('statistics', () => {
|
|
|
if (skip) cond.skip = skip
|
|
|
if (limit) cond.limit = limit
|
|
|
cond = { ...cond, ...info }
|
|
|
- const res = await axios.$get(`${url}`, cond)
|
|
|
+ const res = await axios.$get(`${url}/user`, cond)
|
|
|
return res
|
|
|
}
|
|
|
const resource = async ({ skip = 0, limit = undefined, ...info } = {}) => {
|
|
@@ -25,7 +25,7 @@ export const StatisticsStore = defineStore('statistics', () => {
|
|
|
if (skip) cond.skip = skip
|
|
|
if (limit) cond.limit = limit
|
|
|
cond = { ...cond, ...info }
|
|
|
- const res = await axios.$get(`${url}`, cond)
|
|
|
+ const res = await axios.$get(`${url}/resource`, cond)
|
|
|
return res
|
|
|
}
|
|
|
return {
|