<template>
  <div class="launch-affix">
    <el-button @click="affixClick" text type="primary">Launch version {{ version }}</el-button>
  </div>
</template>

<script setup>
import { ref,getCurrentInstance, onMounted  } from 'vue'

let {proxy} = getCurrentInstance()

const version = ref(proxy.$package.version)

function affixClick() {
  console.log("当前前端版本：" + version.value)
}
</script>

<style scoped>
/* affix */
.launch-affix{
  height: 24px;
  width: 150px;
  z-index: 1000;
  position: absolute;
  top: calc(100vh - 30px);
  left: calc(100vw - 160px);
}
</style>