Commit 98adc879 authored by wanli's avatar wanli

update

parent e3765ee1
...@@ -57,8 +57,8 @@ class BuildLogsManager(object): ...@@ -57,8 +57,8 @@ class BuildLogsManager(object):
app_files = [] app_files = []
for sf in source_files: for sf in source_files:
parsed_result = urlparse(sf.path) parsed_result = urlparse(sf.path)
target_file = os.sep.join([config.get("UPLOAD_PATH"), parsed_result.path.replace('/', '\\')]) target_file = os.sep.join([config.get("UPLOAD_PATH"), parsed_result.path.replace('\\', '/')])
shutil.move(target_file, dest_dir) shutil.move(os.path.normpath(target_file), os.path.normpath(dest_dir))
app_files.append([sf.id, os.sep.join([dest_dir, os.path.basename(parsed_result.path)])]) app_files.append([sf.id, os.sep.join([dest_dir, os.path.basename(parsed_result.path)])])
# if os.path.exists(target_file): # if os.path.exists(target_file):
# shutil.move(target_file, dest_dir) # shutil.move(target_file, dest_dir)
......
...@@ -14,7 +14,7 @@ module.exports = { ...@@ -14,7 +14,7 @@ module.exports = {
* In most cases please use '/' !!! * In most cases please use '/' !!!
* Detail: https://cli.vuejs.org/config/#publicpath * Detail: https://cli.vuejs.org/config/#publicpath
*/ */
publicPath: "/static", publicPath: "/",
outputDir: "dist", outputDir: "dist",
productionSourceMap: false, productionSourceMap: false,
css: { css: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment