성준영

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

...@@ -22,7 +22,7 @@ function createWindow () { ...@@ -22,7 +22,7 @@ function createWindow () {
22 })) 22 }))
23 23
24 // Open the DevTools. 24 // Open the DevTools.
25 - // win.webContents.openDevTools() 25 + win.webContents.openDevTools()
26 26
27 // Emitted when the window is closed. 27 // Emitted when the window is closed.
28 win.on('closed', () => { 28 win.on('closed', () => {
......
1 +const createWindowsInstaller = require('electron-winstaller').createWindowsInstaller
2 +const path = require('path')
3 +
4 +getInstallerConfig()
5 + .then(createWindowsInstaller)
6 + .catch((error) => {
7 + console.error(error.message || error)
8 + process.exit(1)
9 + })
10 +
11 +function getInstallerConfig () {
12 + console.log('creating windows installer')
13 + const rootPath = path.join('./')
14 + const outPath = path.join(rootPath, 'release-builds')
15 +
16 + return Promise.resolve({
17 + appDirectory: path.join(outPath, 'KLAS파일다운로더'),
18 + authors: 'Sung Junyoung',
19 + noMsi: true,
20 + outputDirectory: path.join(outPath, 'windows-installer'),
21 + exe: 'KLAS파일다운로더.exe',
22 + setupExe: 'KLAS파일다운로더-Installer.exe',
23 + setupIcon: path.join(rootPath, 'assets', 'icons', 'win', 'logo_256.ico')
24 + })
25 +}
...\ No newline at end of file ...\ No newline at end of file
...@@ -60,9 +60,11 @@ $(document).ready(function () { ...@@ -60,9 +60,11 @@ $(document).ready(function () {
60 let id = $('#id').val(); 60 let id = $('#id').val();
61 let pw = $('#pw').val(); 61 let pw = $('#pw').val();
62 62
63 + userLectures = [];
64 + lectureFiles = [];
65 + selectedLecture = '';
63 disableAll('로그인 중입니다...'); 66 disableAll('로그인 중입니다...');
64 klasFD.getLectureList(id, pw, function (res) { 67 klasFD.getLectureList(id, pw, function (res) {
65 -
66 console.log(res); 68 console.log(res);
67 if (res.code) { 69 if (res.code) {
68 ableAll(); 70 ableAll();
...@@ -246,6 +248,7 @@ $(document).ready(function () { ...@@ -246,6 +248,7 @@ $(document).ready(function () {
246 $('#logout').hide(); 248 $('#logout').hide();
247 $('#id').val(''); 249 $('#id').val('');
248 $('#pw').val(''); 250 $('#pw').val('');
251 + location.reload();
249 } 252 }
250 253
251 function disableAll(text) { 254 function disableAll(text) {
......
...@@ -33,5 +33,8 @@ ...@@ -33,5 +33,8 @@
33 "querystring": "^0.2.0", 33 "querystring": "^0.2.0",
34 "read": "^1.0.7", 34 "read": "^1.0.7",
35 "request": "^2.81.0" 35 "request": "^2.81.0"
36 + },
37 + "devDependencies": {
38 + "electron-winstaller": "^2.6.1"
36 } 39 }
37 } 40 }
......