From f9379a5bb2349c294e72bc61fc692898a8b333fa Mon Sep 17 00:00:00 2001 From: hdx Date: Wed, 27 Mar 2024 14:39:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20main.uts=20=E5=A2=9E=E5=8A=A0=20console?= =?UTF-8?q?.log=20=E6=B5=8B=E8=AF=95=EF=BC=8C=E5=9C=A8=E6=9B=B4=E6=97=A9?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E6=9C=BA=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.uts | 5 ++++- test-main-console.uts | 8 ++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 test-main-console.uts diff --git a/main.uts b/main.uts index 4f70a384..1849b6c6 100644 --- a/main.uts +++ b/main.uts @@ -1,4 +1,7 @@ -import App from './App.uvue' +// 仅测试 console.log 时机问题 +import './test-main-console.uts' + +import App from './App.uvue' import { createSSRApp } from 'vue' export function createApp() { diff --git a/test-main-console.uts b/test-main-console.uts new file mode 100644 index 00000000..8e112f56 --- /dev/null +++ b/test-main-console.uts @@ -0,0 +1,8 @@ +// 仅测试 console.log 时机问题 +export class TestConsole { + constructor() { + console.log('test.main.console.log'); + } +} + +export const ts = new TestConsole(); -- GitLab