성준영

로그아웃시 바로 로그인하면 로그인 되는 버그 수정

......@@ -22,7 +22,7 @@ function createWindow () {
}))
// Open the DevTools.
// win.webContents.openDevTools()
win.webContents.openDevTools()
// Emitted when the window is closed.
win.on('closed', () => {
......
const createWindowsInstaller = require('electron-winstaller').createWindowsInstaller
const path = require('path')
getInstallerConfig()
.then(createWindowsInstaller)
.catch((error) => {
console.error(error.message || error)
process.exit(1)
})
function getInstallerConfig () {
console.log('creating windows installer')
const rootPath = path.join('./')
const outPath = path.join(rootPath, 'release-builds')
return Promise.resolve({
appDirectory: path.join(outPath, 'KLAS파일다운로더'),
authors: 'Sung Junyoung',
noMsi: true,
outputDirectory: path.join(outPath, 'windows-installer'),
exe: 'KLAS파일다운로더.exe',
setupExe: 'KLAS파일다운로더-Installer.exe',
setupIcon: path.join(rootPath, 'assets', 'icons', 'win', 'logo_256.ico')
})
}
\ No newline at end of file
......@@ -60,9 +60,11 @@ $(document).ready(function () {
let id = $('#id').val();
let pw = $('#pw').val();
userLectures = [];
lectureFiles = [];
selectedLecture = '';
disableAll('로그인 중입니다...');
klasFD.getLectureList(id, pw, function (res) {
console.log(res);
if (res.code) {
ableAll();
......@@ -246,6 +248,7 @@ $(document).ready(function () {
$('#logout').hide();
$('#id').val('');
$('#pw').val('');
location.reload();
}
function disableAll(text) {
......
......@@ -33,5 +33,8 @@
"querystring": "^0.2.0",
"read": "^1.0.7",
"request": "^2.81.0"
},
"devDependencies": {
"electron-winstaller": "^2.6.1"
}
}
......