36 lines
822 B
Plaintext
36 lines
822 B
Plaintext
<html lang="en">
|
||
|
||
<head>
|
||
<title>
|
||
{{ .title }}
|
||
</title>
|
||
<link rel="stylesheet" href="//unpkg.com/element-plus/dist/index.css" />
|
||
|
||
</head>
|
||
|
||
<body>
|
||
<div id="app">
|
||
<el-input class="w-50 m-2"
|
||
size="large" v-model="keyword" placeholder="搜索的关键词"></el-input>
|
||
<el-input class="w-50 m-2"
|
||
size="large" v-model="timeStep" placeholder="定时搜索的时间间隔,单位为秒,默认60秒"></el-input>
|
||
</div>
|
||
|
||
</body>
|
||
<script src="https://unpkg.com/vue@3.2.36/dist/vue.global.js"></script>
|
||
<script src="//cdn.jsdelivr.net/npm/element-plus"></script>
|
||
<script>
|
||
const app = Vue.createApp({
|
||
delimiters: ['${', '}'] ,
|
||
data(){
|
||
return {
|
||
keyword:'{{ .keyword }}',
|
||
timeStep: {{ .timeStep }},
|
||
}
|
||
}
|
||
});
|
||
app.use(ElementPlus);
|
||
app.mount('#app')
|
||
</script>
|
||
|
||
</html> |