修改登录传参问题,修改打包代码增加;

This commit is contained in:
YeMingfei666 2024-12-19 13:44:31 +08:00
parent 0b66bd6441
commit f4100156dd
2 changed files with 18 additions and 18 deletions

View File

@ -1,27 +1,27 @@
var gulp = require('gulp') var gulp = require('gulp');
var $ = require('gulp-load-plugins')() var $ = require('gulp-load-plugins')();
var path = require('path') var path = require('path');
var del = require('del') var del = require('del');
var distPath = path.resolve('./dist') var distPath = path.resolve('./dist');
var version = '' // 版本号 var version = '' ;// 版本号
var versionPath = '' // 版本号路径 var versionPath = '' ;// 版本号路径
var env = ''; // 运行环境 var env = ''; // 运行环境
// 创建版本号(年月日时分) // 创建版本号(年月日时分)
(function () { (function () {
var d = new Date() var d = new Date();
var yy = d.getFullYear().toString().slice(2) var yy = d.getFullYear().toString().slice(2);
var MM = d.getMonth() + 1 >= 10 ? (d.getMonth() + 1) : '0' + (d.getMonth() + 1) var MM = d.getMonth() + 1 >= 10 ? (d.getMonth() + 1) : '0' + (d.getMonth() + 1);
var DD = d.getDate() >= 10 ? d.getDate() : '0' + d.getDate() var DD = d.getDate() >= 10 ? d.getDate() : '0' + d.getDate();
var h = d.getHours() >= 10 ? d.getHours() : '0' + d.getHours() var h = d.getHours() >= 10 ? d.getHours() : '0' + d.getHours();
var mm = d.getMinutes() >= 10 ? d.getMinutes() : '0' + d.getMinutes() var mm = d.getMinutes() >= 10 ? d.getMinutes() : '0' + d.getMinutes();
version = yy + MM + DD + h + mm version = yy + MM + DD + h + mm;
versionPath = distPath + '/' + version versionPath = distPath + '/' + version;
})() })();
// 编译 // 编译
gulp.task('build', $.shell.task(['node build/build.js'])) gulp.task('build', $.shell.task(['node build/build.js']));
// 创建版本号目录 // 创建版本号目录
gulp.task('create:versionCatalog', gulp.series('build', function () { gulp.task('create:versionCatalog', gulp.series('build', function () {

View File

@ -260,7 +260,7 @@ export default {
url: this.$http.adornUrl("sys/login"), url: this.$http.adornUrl("sys/login"),
method: "post", method: "post",
data: this.$http.adornData({ data: this.$http.adornData({
userName: this.dataForm.userName, username: this.dataForm.userName,
password: this.dataForm.password, password: this.dataForm.password,
uuid: this.dataForm.uuid, uuid: this.dataForm.uuid,
captcha: this.dataForm.captcha, captcha: this.dataForm.captcha,