Browse Source

新增商品缓存

master
lyt 2 years ago committed by Loki
parent
commit
cbc705f4da
  1. 2
      src/layout/components/TagsView/index.vue
  2. 2
      src/views/bxg/shop/goods/index.vue

2
src/layout/components/TagsView/index.vue

@ -31,7 +31,6 @@
<script>
import ScrollPane from './ScrollPane'
import path from 'path'
import Utils from '@/assets/js/util.js';
export default {
components: { ScrollPane },
data() {
@ -199,7 +198,6 @@ export default {
toLastView(visitedViews, view) {
const latestView = visitedViews.slice(-1)[0]
if (latestView) {
Utils.$emit('test');
this.$router.push(latestView.fullPath)
} else {
// now the default is to redirect to the home page if there is no tags-view,

2
src/views/bxg/shop/goods/index.vue

@ -106,6 +106,7 @@ import initData from '@/mixins/crud'
import { del, onsale } from '@/api/bxg/yxStoreProduct'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
import Treeselect from '@riophae/vue-treeselect'
import Utils from '@/assets/js/util.js';
export default {
components: { Treeselect },
mixins: [initData],
@ -132,6 +133,7 @@ export default {
},
methods: {
toAddURL(){
Utils.$emit('test');
this.$router.push({ path: '/bxg/shop/goodsAdd' })
},
toUpdateURL(id){

Loading…
Cancel
Save