fix eslint warning

This commit is contained in:
Pan 2017-04-29 16:29:37 +08:00
parent da9d9332b4
commit 785c3beaf5
8 changed files with 106 additions and 117 deletions

View file

@ -54,7 +54,7 @@
"eslint-friendly-formatter": "2.0.7",
"eslint-import-resolver-webpack": "0.8.1",
"eslint-loader": "1.6.3",
"eslint-plugin-html": "2.0.0",
"eslint-plugin-html": "2.0.1",
"eslint-plugin-import": "2.2.0",
"eventsource-polyfill": "0.9.6",
"express": "4.14.1",

View file

@ -6,7 +6,7 @@
<script>
import Dropzone from 'dropzone';
import 'dropzone/dist/dropzone.css';
import { getToken } from 'api/qiniu';
// import { getToken } from 'api/qiniu';
Dropzone.autoDiscover = false;
@ -69,6 +69,7 @@
},
sending: (file, xhr, formData) => {
/* 七牛*/
console.log(file, xhr, formData)
// formData.append('token', file.token);
// formData.append('key', file.key);
vm.initOnce = false;

View file

@ -63,11 +63,6 @@
return this.active ? 'col-resize' : ''
}
},
mounted() {
const element = this.$el;
const elementOffset = element.getBoundingClientRect();
// this.height = elementOffset.height+'px';
},
methods: {
onClick() {
if (!this.hasMoved) {

View file

@ -19,7 +19,7 @@
import editorVideo from './components/editorVideo';
import editorSlide from './components/editorSlide';
import editorImage from './components/editorImage';
import { getToken, upload } from 'api/qiniu'; //
// import { getToken, upload } from 'api/qiniu'; //
//
export default {
name: 'tinymce',

View file

@ -54,19 +54,11 @@ const Theme = resolve => require(['../views/theme/index'], resolve);
const DynamicTable = resolve => require(['../views/example/dynamictable'], resolve);
const Table = resolve => require(['../views/example/table'], 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 */
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);
@ -90,7 +82,6 @@ export default new Router({
path: '/introduction',
component: Layout,
redirect: '/introduction/index',
name: '简述',
icon: 'xinrenzhinan',
noDropdown: true,
children: [

View file

@ -16,9 +16,11 @@
components: { Dropzone },
methods: {
dropzoneS(file) {
console.log(file)
this.$message({ message: '上传成功', type: 'success' });
},
dropzoneR(file) {
console.log(file)
this.$message({ message: '删除成功', type: 'success' });
}
}

View file

@ -35,7 +35,7 @@
<script>
import { mapGetters } from 'vuex';
import { isWscnEmail } from 'utils/validate';
import { getQueryObject } from 'utils';
// import { getQueryObject } from 'utils';
import socialSign from './socialsignin';
export default {

View file

@ -94,26 +94,26 @@
},
methods: {
setPWD() {
this.loading = true;
const _this = this;
this.$refs.resetForm.validate(valid => {
if (valid) {
const data = {
email: this.resetForm.email,
code: this.resetForm.code,
new_password: this.resetForm.checkPass
};
// this.loading = true;
// const _this = this;
// this.$refs.resetForm.validate(valid => {
// if (valid) {
// const data = {
// email: this.resetForm.email,
// code: this.resetForm.code,
// new_password: this.resetForm.checkPass
// };
// restPWD(data).then(() => {
// this.$message.success(',');
// setTimeout(() => {
// _this.$router.push({ path: '/login' })
// }, 5 * 1000)
// });
} else {
this.$message.error('error submit!!');
}
this.loading = false;
});
// } else {
// this.$message.error('error submit!!');
// }
// this.loading = false;
// });
},
togglePasswordType() {
if (this.passwordType === 'text') {