Skip to content

Commit 4eb433a

Browse files
committed
"element"
1 parent 4390774 commit 4eb433a

File tree

5 files changed

+51
-11
lines changed

5 files changed

+51
-11
lines changed

package-lock.json

Lines changed: 44 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
"dependencies": {
1616
"axios": "^0.19.2",
17+
"element-ui": "^2.13.1",
1718
"qs": "latest",
1819
"vue": "^2.5.2",
1920
"vue-router": "^3.0.1",

src/components/BS_Register.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export default {
129129
name:this.name,
130130
password:this.password,
131131
}).then(function (response) {
132-
console.log(response)
132+
console.log(response);
133133
alert(response.data.msg)
134134
}
135135
)

src/components/BS_SignIn.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@
6666

6767
<!-- Unnamed (矩形) -->
6868
<div id="u9" class="ax_default primary_button">
69-
<button @click="signin">Sign in</button>
69+
<el-button type="primary" @click="signin">Sign in</el-button>
7070
</div>
7171

7272
<!-- Unnamed (矩形) -->
7373
<div id="u10" class="ax_default primary_button">
74-
<button @click="regis">Register</button>
74+
<el-button type="primary" @click="regis">Register</el-button>
7575
</div>
7676
</div>
7777
</template>

src/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ import router from './router'
66
import axios from 'axios'
77
import qs from 'qs'
88
import store from './router/store.js'
9+
import ElementUI from 'element-ui';
10+
import 'element-ui/lib/theme-chalk/index.css';
911

1012
// import 'assets/resources/css/axure_rp_page.css'
1113
// import 'assets/data/styles.css'
12-
14+
Vue.use(ElementUI);
1315
Vue.prototype.$axios = axios;
1416
axios.defaults.baseURL = 'http://localhost:8080/';
1517
axios.defaults.timeout = 10000;

0 commit comments

Comments
 (0)