fix: build error

This commit is contained in:
张益铭 2021-03-30 15:06:40 +08:00
parent f8ff3d9162
commit 644bb65488
2 changed files with 12 additions and 4 deletions

View File

@ -1,11 +1,19 @@
<template> <template>
<iframe src="./button.html" frameborder="0" class="iframe"></iframe> <iframe
:src="url"
frameborder="0"
class="iframe"
></iframe>
</template> </template>
<script lang='ts'> <script lang='ts'>
import { ref } from 'vue';
export default { export default {
setup() { setup() {
return {}; const url = ref(process.env.NODE_ENV === 'production' ? '/manages/html/button.html' : '/html/button.html');
return {
url
};
}, },
}; };
</script> </script>