- Remove extra spaces in CSS property declarations - Consolidate multi-line CSS rules into single lines - Maintain consistent formatting across component styles - Improve readability by removing unnecessary line breaks - Ensure uniform styling structure in scoped CSS blocks
46 lines
837 B
JavaScript
46 lines
837 B
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询版本信息
|
|
export function getVersionInfo() {
|
|
return request({
|
|
url: '/system/version/info',
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 检查版本更新
|
|
export function checkVersion(currentVersion) {
|
|
return request({
|
|
url: '/system/version/check',
|
|
method: 'get',
|
|
params: {
|
|
currentVersion: currentVersion
|
|
}
|
|
})
|
|
}
|
|
|
|
// 上传文件到文件服务
|
|
export function uploadFile(data) {
|
|
return request({
|
|
url: '/file/uploads',
|
|
method: 'post',
|
|
data: data,
|
|
headers: {
|
|
'Content-Type': 'multipart/form-data'
|
|
}
|
|
})
|
|
}
|
|
|
|
// 更新版本信息和下载链接
|
|
// data: { version, asarUrl, jarUrl, updateNotes, isBeta }
|
|
export function updateVersion(data) {
|
|
return request({
|
|
url: '/system/version/update',
|
|
method: 'post',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
|
|
|