Commit 32cd8d59 authored by yyh's avatar yyh

后端服务地址修改

parent e87ef81b
VUE_APP_SERVER=http://172.16.101.87:46789/api VUE_APP_SERVER=http://fd.33.cn:1294/api
VUE_APP_BROWSER=http://47.114.159.142:9033 VUE_APP_BROWSER=http://47.114.159.142:9033
\ No newline at end of file
VUE_APP_SERVER=http://172.16.101.87:46789/api VUE_APP_SERVER=http://fd.33.cn:1294/api
VUE_APP_BROWSER=http://47.114.159.142:9033 VUE_APP_BROWSER=http://47.114.159.142:9033
\ No newline at end of file
NODE_ENV=development NODE_ENV=development
VUE_APP_SERVER=http://172.16.101.87:46789/api VUE_APP_SERVER=http://fd.33.cn:1294/api
VUE_APP_BROWSER=http://47.114.159.142:9033 VUE_APP_BROWSER=http://47.114.159.142:9033
\ No newline at end of file
...@@ -11,6 +11,7 @@ const auth = { ...@@ -11,6 +11,7 @@ const auth = {
}); });
}, },
face(params: any) { face(params: any) {
// const { video_base64 }
return axios.post(`${base}/user/face`, { return axios.post(`${base}/user/face`, {
...params, ...params,
}); });
......
...@@ -61,8 +61,7 @@ export default class TypeEight extends Vue { ...@@ -61,8 +61,7 @@ export default class TypeEight extends Vue {
private handleFileChange(e: any) { private handleFileChange(e: any) {
const [ file ] = e.target.files; const [ file ] = e.target.files;
if (!file) { return; } if (!file) { return; }
console.log(file.size); if (file.size > 10 * 1024 * 1024) {
if(file.size > 10 * 1024 * 1024) {
this.$toast('文件太大'); this.$toast('文件太大');
return; return;
} }
......
...@@ -159,6 +159,7 @@ export default class Personal extends Vue { ...@@ -159,6 +159,7 @@ export default class Personal extends Vue {
const reader = new FileReader(); const reader = new FileReader();
reader.readAsDataURL(file); reader.readAsDataURL(file);
reader.onload = (e: any) => { reader.onload = (e: any) => {
console.log(e.target.result);
this.videoBase64 = e.target.result; this.videoBase64 = e.target.result;
}; };
} }
......
...@@ -35,7 +35,9 @@ export default class CodeInput extends Vue { ...@@ -35,7 +35,9 @@ export default class CodeInput extends Vue {
@Prop({ @Prop({
required: true, required: true,
})private codeTo!: string; })private codeTo!: string;
@Prop()private code!: string; @Prop({
required: true,
})private code!: string;
private count: number = 0; private count: number = 0;
private showKeyboard: boolean = true; private showKeyboard: boolean = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment