mirror of
https://github.com/Macrame-App/Macrame
synced 2025-12-29 07:19:26 +00:00
Dashboard page restructured. Moved some elements to the other views.
This commit is contained in:
parent
1cf9029a63
commit
315d169cf9
10 changed files with 363 additions and 121 deletions
|
|
@ -2,9 +2,13 @@ import axios from 'axios'
|
|||
import { appUrl, isLocal } from './ApiService'
|
||||
import { AuthCall } from './EncryptService'
|
||||
|
||||
export const GetMacroList = async () => {
|
||||
export const GetMacroList = async (count = false) => {
|
||||
const request = await axios.post(appUrl() + '/macro/list')
|
||||
return sortMacroList(request.data)
|
||||
|
||||
if (!request.data) return 0
|
||||
|
||||
if (!count) return sortMacroList(request.data)
|
||||
else return request.data.length
|
||||
}
|
||||
|
||||
const sortMacroList = (list) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue