perf: 废弃模块增加 Warning

main
LiaoYijun 3 months ago
parent 07f9b0a19d
commit db0cf324ba

@ -1,3 +1,4 @@
console.warn('Warning: `commons.js` is deprecated and will be removed in next version.');
export function copy(obj) {
return JSON.parse(JSON.stringify(obj))
}

@ -1,6 +1,8 @@
import { BUILD_VERSION } from '@/config'
console.warn('Warning: `request.js` is deprecated and will be removed in next version.');
// Ref: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch
const customHeaders = []

Loading…
Cancel
Save