浏览代码

去掉jsx中的form={form}

xwlyy 5 年之前
父节点
当前提交
8bafb4a745
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/components/Login/Login.vue

+ 1 - 2
src/components/Login/Login.vue

@@ -66,7 +66,6 @@ const Login = {
   },
   render() {
     const { tabs, type } = this.$data;
-    const { form } = this.$props;
     const children = this.$slots.default;
     const TabChildren = [];
     const otherChildren = [];
@@ -86,7 +85,7 @@ const Login = {
     return (
       <LoginContext.Provider value={this.getContext()}>
         <div class="login">
-          <Form form={form} onSubmit={this.handleSubmit}>
+          <Form onSubmit={this.handleSubmit}>
             {tabs.length > 0 ? (
               <div>
                 <Tabs