newfetch/templates/index.gohtml

36 lines
822 B
Plaintext
Raw Normal View History

2022-07-01 05:45:49 +00:00
<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>