SOURCE

console 命令行工具 X clear

                    
>
console
new Vue({
    el: '#app',
    data: function () {
        return {
            app: null,
            filter: null,
            container: null,
            question: '',
            answer: ''
        }
    },
    computed: {

    },
    methods: {
        test(){
            axios.get('http://localhost:8080/indexes/doupai',{
                q: this.question
            }).then(res=>{
                console.log(res)
            })
        }
    },
    mounted() {

        
    }
})
<!DOCTYPE html>
<html>

<head>
	<meta charset="UTF-8">
</head>

<body>
	<div id="app">
		<h1>DP客服咨询</h1>
		<el-container>
			<el-main>
                <el-form label-width="100px" label-position="left">
					<el-form-item label="客服回答">
						{{ answer }}
					</el-form-item>
                </el-form>
			</el-main>
            <el-footer>
                <el-form label-width="100px" label-position="left">
					<el-form-item label="咨询问题">
						<el-input v-model="question" />
					</el-form-item>
					<el-form-item label="">
						<el-button type="primary" @click="test">发送</el-button>
					</el-form-item>
				</el-form>
            </el-footer>
		</el-container>
	</div>
</body>

</html>

本项目引用的自定义外部资源