7 changed files with 109 additions and 19 deletions
-
2.hbuilderx/launch.json
-
23libs/api/index.js
-
18libs/request/beforeRequest.js
-
30libs/request/index.js
-
6pages.json
-
26pages/agreement/agreement.vue
-
23pages/login/login.vue
@ -0,0 +1,26 @@ |
|||
<script setup> |
|||
import { |
|||
getCurrentInstance, |
|||
onMounted, |
|||
} from "vue"; |
|||
// import { onLoad } from "@dcloudio/uni-app"; |
|||
|
|||
// onLoad((options) => { |
|||
// getOpenerEventChannel |
|||
// }); |
|||
const content = ref(""); |
|||
onMounted(() => { |
|||
const instance = getCurrentInstance().proxy; |
|||
const eventChannel = instance.getOpenerEventChannel(); |
|||
eventChannel.emit("getContent", (data) => { |
|||
console.log(data, 333); |
|||
// content |
|||
}); |
|||
}); |
|||
</script> |
|||
|
|||
<template> |
|||
<view> |
|||
agreement |
|||
</view> |
|||
</template> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue