更新脚手架!

This commit is contained in:
Andy Leong
2023-12-29 18:41:59 +08:00
parent f1c3d10fd5
commit c0871a9b1f
29 changed files with 1004 additions and 149 deletions

13
src/page/Share/App.vue Normal file
View File

@@ -0,0 +1,13 @@
<template>
<div class="SharePage">share</div>
</template>
<script setup>
</script>
<style lang="scss" scoped>
.SharePage {
@include fixed();
@include flexCen();
}
</style>

24
src/page/Share/main.js Normal file
View File

@@ -0,0 +1,24 @@
import { createApp } from 'vue'
import App from './App.vue'
import { createPinia } from "pinia"
import h5plugin from '@/plugins/plugin';
import { wxShare } from '@/plugins/wxshare';
const app = createApp(App)
// 定义引入图片地址的全局方法
app.config.globalProperties.imgUrl = (url) => {
return new URL(`./assets/images/${url}`, import.meta.url).href
}
// 初始化我的方法
app.config.globalProperties.myPlugin = h5plugin
// 微信分享配置
wxShare({
title: '分享标题',
desc: '分享描述',
link: '/index.html',
})
app.use(createPinia())
app.mount('#app')
console.log('Mode:', import.meta.env.VITE_MODE);