fix eslint warning
This commit is contained in:
parent
da9d9332b4
commit
785c3beaf5
|
@ -54,7 +54,7 @@
|
||||||
"eslint-friendly-formatter": "2.0.7",
|
"eslint-friendly-formatter": "2.0.7",
|
||||||
"eslint-import-resolver-webpack": "0.8.1",
|
"eslint-import-resolver-webpack": "0.8.1",
|
||||||
"eslint-loader": "1.6.3",
|
"eslint-loader": "1.6.3",
|
||||||
"eslint-plugin-html": "2.0.0",
|
"eslint-plugin-html": "2.0.1",
|
||||||
"eslint-plugin-import": "2.2.0",
|
"eslint-plugin-import": "2.2.0",
|
||||||
"eventsource-polyfill": "0.9.6",
|
"eventsource-polyfill": "0.9.6",
|
||||||
"express": "4.14.1",
|
"express": "4.14.1",
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<script>
|
<script>
|
||||||
import Dropzone from 'dropzone';
|
import Dropzone from 'dropzone';
|
||||||
import 'dropzone/dist/dropzone.css';
|
import 'dropzone/dist/dropzone.css';
|
||||||
import { getToken } from 'api/qiniu';
|
// import { getToken } from 'api/qiniu';
|
||||||
|
|
||||||
Dropzone.autoDiscover = false;
|
Dropzone.autoDiscover = false;
|
||||||
|
|
||||||
|
@ -69,6 +69,7 @@
|
||||||
},
|
},
|
||||||
sending: (file, xhr, formData) => {
|
sending: (file, xhr, formData) => {
|
||||||
/* 七牛*/
|
/* 七牛*/
|
||||||
|
console.log(file, xhr, formData)
|
||||||
// formData.append('token', file.token);
|
// formData.append('token', file.token);
|
||||||
// formData.append('key', file.key);
|
// formData.append('key', file.key);
|
||||||
vm.initOnce = false;
|
vm.initOnce = false;
|
||||||
|
|
|
@ -63,11 +63,6 @@
|
||||||
return this.active ? 'col-resize' : ''
|
return this.active ? 'col-resize' : ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
|
||||||
const element = this.$el;
|
|
||||||
const elementOffset = element.getBoundingClientRect();
|
|
||||||
// this.height = elementOffset.height+'px';
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
onClick() {
|
onClick() {
|
||||||
if (!this.hasMoved) {
|
if (!this.hasMoved) {
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
import editorVideo from './components/editorVideo';
|
import editorVideo from './components/editorVideo';
|
||||||
import editorSlide from './components/editorSlide';
|
import editorSlide from './components/editorSlide';
|
||||||
import editorImage from './components/editorImage';
|
import editorImage from './components/editorImage';
|
||||||
import { getToken, upload } from 'api/qiniu'; // 七牛
|
// import { getToken, upload } from 'api/qiniu'; // 七牛
|
||||||
// 业务需求可删除
|
// 业务需求可删除
|
||||||
export default {
|
export default {
|
||||||
name: 'tinymce',
|
name: 'tinymce',
|
||||||
|
|
|
@ -54,19 +54,11 @@ const Theme = resolve => require(['../views/theme/index'], resolve);
|
||||||
const DynamicTable = resolve => require(['../views/example/dynamictable'], resolve);
|
const DynamicTable = resolve => require(['../views/example/dynamictable'], resolve);
|
||||||
const Table = resolve => require(['../views/example/table'], resolve);
|
const Table = resolve => require(['../views/example/table'], resolve);
|
||||||
const Form1 = resolve => require(['../views/example/form1'], resolve);
|
const Form1 = resolve => require(['../views/example/form1'], resolve);
|
||||||
const Form2 = resolve => require(['../views/example/form2'], resolve);
|
// const Form2 = resolve => require(['../views/example/form2'], resolve);
|
||||||
|
|
||||||
/* permission */
|
/* permission */
|
||||||
const Permission = resolve => require(['../views/permission/index'], resolve);
|
const Permission = resolve => require(['../views/permission/index'], resolve);
|
||||||
|
|
||||||
/* admin*/
|
|
||||||
// const AdminCreateUser = resolve => require(['../views/admin/createUser'], resolve);
|
|
||||||
// const QuicklyCreateUser = resolve => require(['../views/admin/quicklycreate'], resolve);
|
|
||||||
// const UserProfile = resolve => require(['../views/admin/profile'], resolve);
|
|
||||||
// const UsersList = resolve => require(['../views/admin/usersList'], resolve);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Vue.use(Router);
|
Vue.use(Router);
|
||||||
|
|
||||||
|
@ -90,7 +82,6 @@ export default new Router({
|
||||||
path: '/introduction',
|
path: '/introduction',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/introduction/index',
|
redirect: '/introduction/index',
|
||||||
name: '简述',
|
|
||||||
icon: 'xinrenzhinan',
|
icon: 'xinrenzhinan',
|
||||||
noDropdown: true,
|
noDropdown: true,
|
||||||
children: [
|
children: [
|
||||||
|
|
|
@ -16,9 +16,11 @@
|
||||||
components: { Dropzone },
|
components: { Dropzone },
|
||||||
methods: {
|
methods: {
|
||||||
dropzoneS(file) {
|
dropzoneS(file) {
|
||||||
|
console.log(file)
|
||||||
this.$message({ message: '上传成功', type: 'success' });
|
this.$message({ message: '上传成功', type: 'success' });
|
||||||
},
|
},
|
||||||
dropzoneR(file) {
|
dropzoneR(file) {
|
||||||
|
console.log(file)
|
||||||
this.$message({ message: '删除成功', type: 'success' });
|
this.$message({ message: '删除成功', type: 'success' });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
<script>
|
<script>
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import { isWscnEmail } from 'utils/validate';
|
import { isWscnEmail } from 'utils/validate';
|
||||||
import { getQueryObject } from 'utils';
|
// import { getQueryObject } from 'utils';
|
||||||
import socialSign from './socialsignin';
|
import socialSign from './socialsignin';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
@ -94,26 +94,26 @@
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
setPWD() {
|
setPWD() {
|
||||||
this.loading = true;
|
// this.loading = true;
|
||||||
const _this = this;
|
// const _this = this;
|
||||||
this.$refs.resetForm.validate(valid => {
|
// this.$refs.resetForm.validate(valid => {
|
||||||
if (valid) {
|
// if (valid) {
|
||||||
const data = {
|
// const data = {
|
||||||
email: this.resetForm.email,
|
// email: this.resetForm.email,
|
||||||
code: this.resetForm.code,
|
// code: this.resetForm.code,
|
||||||
new_password: this.resetForm.checkPass
|
// new_password: this.resetForm.checkPass
|
||||||
};
|
// };
|
||||||
// restPWD(data).then(() => {
|
// restPWD(data).then(() => {
|
||||||
// this.$message.success('密码设置成功,五秒后调整到登录页');
|
// this.$message.success('密码设置成功,五秒后调整到登录页');
|
||||||
// setTimeout(() => {
|
// setTimeout(() => {
|
||||||
// _this.$router.push({ path: '/login' })
|
// _this.$router.push({ path: '/login' })
|
||||||
// }, 5 * 1000)
|
// }, 5 * 1000)
|
||||||
// });
|
// });
|
||||||
} else {
|
// } else {
|
||||||
this.$message.error('error submit!!');
|
// this.$message.error('error submit!!');
|
||||||
}
|
// }
|
||||||
this.loading = false;
|
// this.loading = false;
|
||||||
});
|
// });
|
||||||
},
|
},
|
||||||
togglePasswordType() {
|
togglePasswordType() {
|
||||||
if (this.passwordType === 'text') {
|
if (this.passwordType === 'text') {
|
||||||
|
|
Loading…
Reference in New Issue