注册全局组件SVG,集成pinia,封装axios

This commit is contained in:
2024-08-08 19:08:15 +08:00
parent f0cc1b54c2
commit 74bd16dc51
31 changed files with 4753 additions and 122 deletions

View File

@@ -1,15 +0,0 @@
<template>
<div></div>
</template>
<script setup lang='ts'>
defineOptions({
name: "componentName"
})
import {ref, reactive} from 'vue'
let select = ref(1)
defineExpose({ select })
</script>
<style scoped>
</style>

View File

@@ -1,32 +1,22 @@
<template>
<div ref="loginContent" class="text-xl text-red-600">
<!--用户名密码暂时不做图形验证码-->
<h1 ref="loginTitle">123</h1>
<Child ref="child"/>
<svg-icon name="wind" color="#fff" size="100" spin > </svg-icon>
</div>
</template>
<script setup lang='ts'>
defineOptions({
name: "Login"
})
import {ref, reactive,onMounted} from 'vue'
import Child from './Child.vue'
defineOptions(
{
name: "CustomLogin"
}
)
import {ref, onMounted} from 'vue'
let loginContent = ref()
let loginTitle = ref()
let child = ref()
function showLog(){
console.log(child.value)
}
showLog()
console.log(loginTitle.value);
console.log(child.value);
onMounted(() => {
console.log(loginTitle.value);
console.log(child.value);
console.log(loginTitle.value);
});