feat:添加升级逻辑
This commit is contained in:
19
src/global.d.ts
vendored
Normal file
19
src/global.d.ts
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import {cloneDeep} from "lodash-es"
|
||||
|
||||
export {}
|
||||
|
||||
declare global {
|
||||
interface Console {
|
||||
json(v: any): void
|
||||
}
|
||||
|
||||
interface Console {
|
||||
parse(v: any): void
|
||||
}
|
||||
}
|
||||
console.json = function (v: any) {
|
||||
console.log(cloneDeep(v))
|
||||
}
|
||||
console.parse = function (v: any) {
|
||||
console.log(JSON.parse(v))
|
||||
}
|
||||
Reference in New Issue
Block a user