新增商品缓存
This commit is contained in:
@@ -31,7 +31,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import ScrollPane from './ScrollPane'
|
import ScrollPane from './ScrollPane'
|
||||||
import path from 'path'
|
import path from 'path'
|
||||||
import Utils from '@/assets/js/util.js';
|
|
||||||
export default {
|
export default {
|
||||||
components: { ScrollPane },
|
components: { ScrollPane },
|
||||||
data() {
|
data() {
|
||||||
@@ -199,7 +198,6 @@ export default {
|
|||||||
toLastView(visitedViews, view) {
|
toLastView(visitedViews, view) {
|
||||||
const latestView = visitedViews.slice(-1)[0]
|
const latestView = visitedViews.slice(-1)[0]
|
||||||
if (latestView) {
|
if (latestView) {
|
||||||
Utils.$emit('test');
|
|
||||||
this.$router.push(latestView.fullPath)
|
this.$router.push(latestView.fullPath)
|
||||||
} else {
|
} else {
|
||||||
// now the default is to redirect to the home page if there is no tags-view,
|
// now the default is to redirect to the home page if there is no tags-view,
|
||||||
|
|||||||
@@ -106,6 +106,7 @@ import initData from '@/mixins/crud'
|
|||||||
import { del, onsale } from '@/api/bxg/yxStoreProduct'
|
import { del, onsale } from '@/api/bxg/yxStoreProduct'
|
||||||
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||||
import Treeselect from '@riophae/vue-treeselect'
|
import Treeselect from '@riophae/vue-treeselect'
|
||||||
|
import Utils from '@/assets/js/util.js';
|
||||||
export default {
|
export default {
|
||||||
components: { Treeselect },
|
components: { Treeselect },
|
||||||
mixins: [initData],
|
mixins: [initData],
|
||||||
@@ -132,6 +133,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
toAddURL(){
|
toAddURL(){
|
||||||
|
Utils.$emit('test');
|
||||||
this.$router.push({ path: '/bxg/shop/goodsAdd' })
|
this.$router.push({ path: '/bxg/shop/goodsAdd' })
|
||||||
},
|
},
|
||||||
toUpdateURL(id){
|
toUpdateURL(id){
|
||||||
|
|||||||
Reference in New Issue
Block a user