Skip to content

Commit

Permalink
fix: playground not effect
Browse files Browse the repository at this point in the history
  • Loading branch information
zguolee committed Aug 16, 2022
1 parent 48b1c5e commit fb1cfbd
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -8,6 +8,8 @@
"build": "rimraf packages/*/dist && pnpm -r --filter=./packages/* run build && pnpm -r run build-post",
"play:mp-weixin": "npm -C playground run dev:mp-weixin",
"build:mp-weixin": "npm -C playground run build:mp-weixin",
"play:h5": "npm -C playground run dev:h5",
"build:h5": "npm -C playground run build:h5",
"release": "bumpp package.json packages/**/package.json",
"stub": "pnpm -r --filter=./packages/* --parallel run stub",
"typecheck": "tsc --noEmit",
Expand Down
15 changes: 8 additions & 7 deletions playground/src/App.vue
@@ -1,13 +1,14 @@
<script setup lang="ts">
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
import { onHide, onLaunch, onShow } from '@dcloudio/uni-app'
onLaunch(() => {
console.log("App Launch");
});
console.log('App Launch')
})
onShow(() => {
console.log("App Show");
});
console.log('App Show')
})
onHide(() => {
console.log("App Hide");
});
console.log('App Hide')
})
</script>

<style></style>
11 changes: 7 additions & 4 deletions playground/src/main.ts
@@ -1,8 +1,11 @@
import { createSSRApp } from "vue";
import App from "./App.vue";
import { createSSRApp } from 'vue'
import App from './App.vue'

import 'uno.css'

export function createApp() {
const app = createSSRApp(App);
const app = createSSRApp(App)
return {
app,
};
}
}

0 comments on commit fb1cfbd

Please sign in to comment.