newfetch/templates/index.gohtml
2022-07-01 13:45:49 +08:00

36 lines
822 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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>