1. 将scene定义成全局变量. app.config.globalProperties.$scene = ''//mainjs中定义 import { getCurrentInstance } from 'vue'const { proxy }=getCurrentInstance() proxy.$scene=newTHREE.Scene() //页面中使用 2.不用ref定义scene let
npm ERR! network request to https://registry.npm.taobao.org/webpack failed, reason: getaddrinfo ENOTFOUND registry.npm.taobao.org ENOTFOUND registry.npm.taobao.org npm ERR! network This is a problem related to network connectivity. npm ERR! network In most cases you are behind a proxy or...