diff --git a/test/src/app.ts b/test/src/app.ts index 2df4b3e..d2ae9c9 100644 --- a/test/src/app.ts +++ b/test/src/app.ts @@ -1,5 +1,5 @@ import { test } from "/lib/test"; - +import {request} from "miniprogram-network" test const data = { @@ -10,6 +10,7 @@ const data = { App({ onLaunch() { + request("POST","/"); console.log(test, "{{Vx}}"); } }) diff --git a/test/src/wxs/comm.wxts b/test/src/wxs/comm.wxts index 2f6cfdc..aa7e928 100644 --- a/test/src/wxs/comm.wxts +++ b/test/src/wxs/comm.wxts @@ -1,8 +1,6 @@ -import {request} from 'miniprogram-network'; import {x} from "./x.wxs"; -x() -request() + const foo = "'hello world' from comm.wxs" + Date.now(); const bar = function (d: string) { return decodeURI(d);