mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-07 00:47:19 +08:00
fix: build error
This commit is contained in:
parent
f8ff3d9162
commit
644bb65488
@ -1,19 +1,27 @@
|
|||||||
<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>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.iframe {
|
.iframe {
|
||||||
width:98%;
|
width: 98%;
|
||||||
height:90vh;
|
height: 90vh;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user