去除window.__nuxt__

 nodemodules中

 
 if (shouldInjectScripts) {
        // APP += `<script>${serializedSession}<\/script>`;
        let path = this.options.buildDir + '/dist/client/init/init.js'
        try {
            fs.outputFileSync(path, serializedSession)
            APP += `<script src="/_nuxt/init/init.js" defer></script>`;
        } catch (err) {
            console.error(err)
        }
      }
posted @ 2023-09-14 17:18  卢老师不想编程  阅读(98)  评论(0编辑  收藏  举报