2022-12-16 02:06:14 +00:00
|
|
|
import http from '@/api/http';
|
|
|
|
|
|
|
|
export interface VersionData {
|
|
|
|
panel: {
|
|
|
|
current: string;
|
|
|
|
latest: string;
|
2023-01-12 19:31:47 +00:00
|
|
|
};
|
2022-12-16 02:06:14 +00:00
|
|
|
|
|
|
|
wings: {
|
|
|
|
latest: string;
|
2023-01-12 19:31:47 +00:00
|
|
|
};
|
2022-12-16 02:06:14 +00:00
|
|
|
|
|
|
|
git: string | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
export default (): Promise<VersionData> => {
|
|
|
|
return new Promise((resolve, reject) => {
|
|
|
|
http.get('/api/application/version')
|
|
|
|
.then(({ data }) => resolve(data))
|
|
|
|
.catch(reject);
|
|
|
|
});
|
|
|
|
};
|