Files
AIGC/demo/frontend/src/views/BasicTest.vue

51 lines
946 B
Vue
Raw Normal View History

<template>
<div class="basic-test">
<h1>基础测试页面</h1>
<p>这个页面不使用任何Element Plus图标</p>
<button @click="testClick">测试按钮</button>
<div class="test-content">
<p>如果你能看到这个内容说明Vue组件能正常渲染</p>
</div>
</div>
</template>
<script setup>
import { ref } from 'vue'
const testClick = () => {
alert('按钮点击成功Vue工作正常')
}
</script>
<style scoped>
.basic-test {
padding: 50px;
text-align: center;
font-size: 18px;
background-color: #f5f5f5;
min-height: 100vh;
}
.test-content {
margin-top: 20px;
padding: 20px;
background-color: white;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
button {
padding: 10px 20px;
font-size: 16px;
background-color: #007bff;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #0056b3;
}
</style>