This commit is contained in:
17
src/pages/game/view/index.vue
Normal file
17
src/pages/game/view/index.vue
Normal file
@@ -0,0 +1,17 @@
|
||||
<template>
|
||||
<web-view style="height: 100vh; width: 100vw" :src="url"></web-view>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref } from "vue";
|
||||
import { getStorageSync, useLoad } from "@tarojs/taro";
|
||||
import { WebView } from "@tarojs/components";
|
||||
|
||||
const url = ref("");
|
||||
|
||||
useLoad(() => {
|
||||
url.value = getStorageSync("game_url");
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss"></style>
|
||||
Reference in New Issue
Block a user