提交商品发布错误bug

master
lemon橪 2021-08-30 17:20:09 +08:00
parent 8dc3923a4f
commit 692f7b6dbf
3 changed files with 11 additions and 15 deletions

View File

@ -8,12 +8,10 @@
<title>lili store</title> <title>lili store</title>
<meta name="keywords" content="keywords" /> <meta name="keywords" content="keywords" />
<meta name="description" content="description" /> <meta name="description" content="description" />
<!-- built files will be auto injected -->
<% for(var css of htmlWebpackPlugin.options.cdn.css) { %> <% for(var css of htmlWebpackPlugin.options.cdn.css) { %>
<link rel="stylesheet" href="<%=css%>" /> <link rel="stylesheet" href="<%=css%>" />
<% } %> <% } %>
<% for(var js of htmlWebpackPlugin.options.cdn.js) { %>
<script src="<%=js%>"></script>
<% } %>
<style> <style>
.page-loading-wrap { .page-loading-wrap {
padding: 120px; padding: 120px;
@ -65,8 +63,10 @@
} }
</style> </style>
</head> </head>
<body> <body>
<% for(var js of htmlWebpackPlugin.options.cdn.js) { %>
<script src="<%=js%>"></script>
<% } %>
<noscript> <noscript>
<strong <strong
>We're sorry but lili-admin doesn't work properly without JavaScript >We're sorry but lili-admin doesn't work properly without JavaScript
@ -82,6 +82,5 @@
<h4 style="margin-top:20px;">正在加载资源...</h4> <h4 style="margin-top:20px;">正在加载资源...</h4>
</div> </div>
</div> </div>
<!-- built files will be auto injected -->
</body> </body>
</html> </html>

View File

@ -1089,16 +1089,13 @@ export default {
this.submitLoading = false; this.submitLoading = false;
return; return;
} }
let tips = ""
submit.skuList = this.skuTableData.map((sku) => { submit.skuList = this.skuTableData.map((sku) => {
// //
console.warn(sku); delete sku._index;
delete sku._rowKey;
// delete sku._index; delete sku.specNameId;
// delete sku._rowKey; delete sku.specValueId;
// delete sku.specNameId; return sku;
// delete sku.specValueId;
// return sku;
}); });
if (submit.goodsGalleryFiles.length > 0) { if (submit.goodsGalleryFiles.length > 0) {

View File

@ -32,7 +32,7 @@ let cdn = {
css: ["https://cdn.jsdelivr.net/npm/view-design@4.1.1/dist/styles/iview.css"], css: ["https://cdn.jsdelivr.net/npm/view-design@4.1.1/dist/styles/iview.css"],
js: [ js: [
// vue must at first! // vue must at first!
"https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.min.js", "https://unpkg.com/vue/dist/vue.js",
"https://cdn.jsdelivr.net/npm/vuex@3.1.2/dist/vuex.min.js", "https://cdn.jsdelivr.net/npm/vuex@3.1.2/dist/vuex.min.js",
"https://cdn.jsdelivr.net/npm/vue-router@3.1.3/dist/vue-router.min.js", "https://cdn.jsdelivr.net/npm/vue-router@3.1.3/dist/vue-router.min.js",
"https://cdn.jsdelivr.net/npm/axios@0.19.0/dist/axios.min.js", "https://cdn.jsdelivr.net/npm/axios@0.19.0/dist/axios.min.js",