Files
cunkebao_v3/Store_vue/api/modules/app.js
2025-11-03 14:07:15 +08:00

20 lines
597 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { request, APP_CONFIG } from '../config'
// APP相关API
export const appApi = {
// 检测APP更新
// @param {string} version - APP版本号可选默认使用配置中的版本号
// @returns {Promise} 返回更新信息
checkUpdate: (version) => {
return request({
url: '/v1/app/update',
method: 'GET',
data: {
type: APP_CONFIG.type, // 固定为 aiStore
version: version || APP_CONFIG.version // 使用传入的版本号或配置中的默认版本号
}
})
}
}