console-for-proxy

0.0.2 • Public • Published

Vue3.0 之后,生命的 ref 对象、数组都是经过代理的,那如果使用 console.log 输出的为代理后的对象,不利于在控制台查看。所以本仓库修改原始

console,增加了 console.vlog 方法,解决此问题。

Usage

在 main.js 初始化

import { initConsole } from 'console-for-proxy'

initConsole()

在组件内使用

import { ref } from 'vue'

const detail = ref({ name: 'console-for-proxy' })

console.vlog(detail)

Readme

Keywords

Package Sidebar

Install

npm i console-for-proxy

Weekly Downloads

2

Version

0.0.2

License

MIT

Unpacked Size

3.87 kB

Total Files

3

Last publish

Collaborators

  • jackfei