|
@@ -6,11 +6,14 @@
|
|
<el-input v-model="input" placeholder="请输入内容" />
|
|
<el-input v-model="input" placeholder="请输入内容" />
|
|
<el-tag>{{input}}</el-tag>
|
|
<el-tag>{{input}}</el-tag>
|
|
<child :val="val" @childByValue="childByValue" />
|
|
<child :val="val" @childByValue="childByValue" />
|
|
|
|
+ <br />
|
|
|
|
+ <el-button @click="login">登入</el-button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import child from "@/views/work/child";
|
|
import child from "@/views/work/child";
|
|
|
|
+import { loginByUsername } from "@/api/login";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "work",
|
|
name: "work",
|
|
@@ -32,6 +35,9 @@ export default {
|
|
console.log("bb");
|
|
console.log("bb");
|
|
this.val = chi;
|
|
this.val = chi;
|
|
this.input = chi;
|
|
this.input = chi;
|
|
|
|
+ },
|
|
|
|
+ login: function() {
|
|
|
|
+ loginByUsername("admin", "system");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|