瀏覽代碼

修复vue-loader图片路径不对

zhuliang 7 年之前
父節點
當前提交
dab8252cac

二進制
.gitignore.swp


+ 1 - 1
web/index.html

@@ -4,4 +4,4 @@
       "server": window.location.protocol +'//'+ window.location.host + window.location.pathname+ '../server/index.php?s=',
       //"lang" :'en'
       "lang" :'zh-cn'
-  }</script><link href=./static/css/app.d42218f53a8d6baef442096cb907c8ac.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.c40e244d08e2558b4f27.js></script><script type=text/javascript src=./static/js/app.d7c40053424fd4a064f0.js></script></body></html>
+  }</script><link href=./static/css/app.4b943d731a97492f57e1663d288f5528.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.c40e244d08e2558b4f27.js></script><script type=text/javascript src=./static/js/app.63483bdb3088a0b81b0d.js></script></body></html>

文件差異過大導致無法顯示
+ 1 - 0
web/static/css/app.4b943d731a97492f57e1663d288f5528.css


文件差異過大導致無法顯示
+ 0 - 1
web/static/css/app.d42218f53a8d6baef442096cb907c8ac.css


文件差異過大導致無法顯示
+ 1 - 0
web/static/js/app.63483bdb3088a0b81b0d.js


文件差異過大導致無法顯示
+ 0 - 1
web/static/js/app.d7c40053424fd4a064f0.js


+ 2 - 1
web_src/build/utils.js

@@ -47,7 +47,8 @@ exports.cssLoaders = function (options) {
     if (options.extract) {
       return ExtractTextPlugin.extract({
         use: loaders,
-        fallback: 'vue-style-loader'
+        fallback: 'vue-style-loader',
+        publicPath: '../../'
       })
     } else {
       return ['vue-style-loader'].concat(loaders)

+ 1 - 1
web_src/src/components/item/Index.vue

@@ -7,7 +7,7 @@
       <el-row class="masthead">
 
           <div class="logo-title ">
-              <h2 class="muted"><img src="static/logo/b_64.png" style="width:40px;height:40px;margin-bottom:-12px;margin-right: 10px;" alt="">文档管理&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 14px;">用户:{{username}}</span></h2>
+              <h2 class="muted"><img src="static/logo/b_64.png" style="width:40px;height:40px;margin-bottom:-12px;margin-right: 10px;" alt="">文档管理&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 14px;color: #999;">用户:{{username}}</span></h2>
           </div>
           <div class="header-btn-group pull-right">
             <!--<el-button type="text"  @click="feedback">{{$t("feedback")}}</el-button>-->