mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-05 15:01:23 +08:00
23 lines
584 B
TypeScript
23 lines
584 B
TypeScript
import { defineStore } from 'pinia'
|
|
import request from '@/services'
|
|
|
|
export const useNoticeManageStore = defineStore('notice-manage', {
|
|
state: () => {
|
|
return {
|
|
selectData: [],
|
|
loading: true
|
|
}
|
|
},
|
|
getters: {},
|
|
actions: {
|
|
selectAllNotice() {
|
|
void request.get('http://localhost:8621/notice').then((response) => {
|
|
this.selectData = response.data.data
|
|
if (this.selectData.length !== 0) {
|
|
this.loading = false
|
|
}
|
|
})
|
|
}
|
|
}
|
|
})
|