yc-ui2 0.1.2-beta12 → 0.1.2-beta14

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yc-ui2",
3
- "version": "0.1.2-beta12",
3
+ "version": "0.1.2-beta14",
4
4
  "private": false,
5
5
  "description": "湖南优创UI组件库",
6
6
  "main": "dist/yc-ui2.umd.min.js",
@@ -45,7 +45,10 @@
45
45
  "parserOptions": {
46
46
  "parser": "@babel/eslint-parser"
47
47
  },
48
- "rules": {}
48
+ "rules": {
49
+ "no-debugger": "off",
50
+ "no-console": "off"
51
+ }
49
52
  },
50
53
  "browserslist": [
51
54
  "> 1%",
package/src/App.vue CHANGED
@@ -19,6 +19,7 @@
19
19
  </template>
20
20
  </div>
21
21
  </YcCustomerService>
22
+ <YcCA :region="region" :caUrl="caUrl" @caSuccess="login" />
22
23
  </div>
23
24
  </template>
24
25
 
@@ -28,6 +29,41 @@ export default {
28
29
  components: {
29
30
  // YcSlideVerify: () => import("comp/YcSlideVerify"),
30
31
  YcCustomerService: () => import("comp/YcCustomerService"),
32
+ YcCA: () => import("comp/YcCA"),
33
+ },
34
+ data() {
35
+ return {
36
+ region: void 0,
37
+ caUrl: void 0,
38
+ }
39
+ },
40
+ created() {
41
+ setTimeout(() => {
42
+ this.region = 1
43
+ this.caUrl =
44
+ "http://120.25.167.9:9000/website/media/ce861516a25d4671ab01e150790b6111.zip"
45
+ }, 3000)
46
+ },
47
+ methods: {
48
+ login(value, back) {
49
+ back(value)
50
+ // this.$store
51
+ // .dispatch("CALogin", this.loginForm)
52
+ // .then(() => {
53
+ // this.$router.push({ path: this.redirect || "/" }).catch(() => {})
54
+ // })
55
+ // .catch(() => {
56
+ // this.loading = false
57
+ // })
58
+ // this.$store
59
+ // .dispatch("CALogin", this.loginForm)
60
+ // .then(() => {
61
+ // this.$router.push({ path: this.redirect || "/" }).catch(() => {})
62
+ // })
63
+ // .catch(() => {
64
+ // this.loading = false
65
+ // })
66
+ },
31
67
  },
32
68
  }
33
69
  </script>