ソースを参照

fix: 取消logout接口校验

叶静 1 ヶ月 前
コミット
9bc9dd0665

BIN
public/static/images/chat/chat.mp3


BIN
public/static/images/chat/head.png


BIN
public/static/images/chat/loading.png


BIN
public/static/images/chat/notice.mp3


BIN
public/static/images/chat/warning.png


+ 3 - 3
src/app/admin/store/account.js

@@ -93,9 +93,9 @@ const account = defineStore({
      */
     async logout(force = false) {
       let that = this;
-      if (!force) {
-        await admin.account.logout();
-      }
+      // if (!force) {
+      //   await admin.account.logout();
+      // }
       setTimeout(function () {
         that.info = {};
         that.setToken();

+ 0 - 170
src/sheep/local-data/admin.js

@@ -444,169 +444,6 @@ const menuRulesData = {
   },
 };
 
-// 商品列表mock数据
-const goodsListData = {
-  error: 0,
-  msg: 'success',
-  data: {
-    current_page: 1,
-    per_page: 20,
-    total: 100,
-    data: [
-      {
-        id: 'BZ6542',
-        image: 'https://via.placeholder.com/60x60/333/FFF?text=👓',
-        title: 'BOLON Classic Aviator Polarized Sunglasses, Exclusive Eyewear Brand...',
-        original_price: '¥1,999',
-        current_price: '¥1,000',
-        sales: 2000,
-        views: 392,
-        stock: 2455,
-        status: 'up',
-        status_text: '已上架',
-        sku_id: 'BS55666665',
-        supplier: '商家科技有限公司',
-        create_time: '2024-01-15 10:30:00',
-      },
-      {
-        id: 'BZ6542',
-        image: 'https://via.placeholder.com/60x60/333/FFF?text=👓',
-        title: 'BOLON Classic Aviator Polarized Sunglasses, Exclusive Eyewear Brand...',
-        original_price: '¥1,999',
-        current_price: '¥1,000',
-        sales: 2000,
-        views: 392,
-        stock: 2455,
-        status: 'up',
-        status_text: '已上架',
-        sku_id: 'BS55666665',
-        supplier: '商家科技有限公司',
-        create_time: '2024-01-15 10:30:00',
-      },
-      {
-        id: 'BZ6542',
-        image: 'https://via.placeholder.com/60x60/333/FFF?text=👓',
-        title: 'BOLON Classic Aviator Polarized Sunglasses, Exclusive Eyewear Brand...',
-        original_price: '¥1,999',
-        current_price: '¥1,000',
-        sales: 2000,
-        views: 392,
-        stock: 2455,
-        status: 'up',
-        status_text: '已上架',
-        sku_id: 'BS55666665',
-        supplier: '商家科技有限公司',
-        create_time: '2024-01-15 10:30:00',
-      },
-      {
-        id: 'BZ6542',
-        image: 'https://via.placeholder.com/60x60/333/FFF?text=👓',
-        title: 'BOLON Classic Aviator Polarized Sunglasses, Exclusive Eyewear Brand...',
-        original_price: '¥1,999',
-        current_price: '¥1,000',
-        sales: 2000,
-        views: 392,
-        stock: 2455,
-        status: 'down',
-        status_text: '已下架',
-        sku_id: 'BS55666665',
-        supplier: '商家科技有限公司',
-        create_time: '2024-01-15 10:30:00',
-      },
-      {
-        id: 'BZ6542',
-        image: 'https://via.placeholder.com/60x60/333/FFF?text=👓',
-        title: 'BOLON Classic Aviator Polarized Sunglasses, Exclusive Eyewear Brand...',
-        original_price: '¥1,999',
-        current_price: '¥1,000',
-        sales: 2000,
-        views: 392,
-        stock: 2455,
-        status: 'down',
-        status_text: '已下架',
-        sku_id: 'BS55666665',
-        supplier: '商家科技有限公司',
-        create_time: '2024-01-15 10:30:00',
-      },
-      {
-        id: 'BZ6542',
-        image: 'https://via.placeholder.com/60x60/333/FFF?text=👓',
-        title: 'BOLON Classic Aviator Polarized Sunglasses, Exclusive Eyewear Brand...',
-        original_price: '¥1,999',
-        current_price: '¥1,000',
-        sales: 2000,
-        views: 392,
-        stock: 2455,
-        status: 'down',
-        status_text: '已下架',
-        sku_id: 'BS55666665',
-        supplier: '商家科技有限公司',
-        create_time: '2024-01-15 10:30:00',
-      },
-      {
-        id: 'BZ6542',
-        image: 'https://via.placeholder.com/60x60/333/FFF?text=👓',
-        title: 'BOLON Classic Aviator Polarized Sunglasses, Exclusive Eyewear Brand...',
-        original_price: '¥1,999',
-        current_price: '¥1,000',
-        sales: 2000,
-        views: 392,
-        stock: 2455,
-        status: 'hidden',
-        status_text: '已隐藏',
-        sku_id: 'BS55666665',
-        supplier: '商家科技有限公司',
-        create_time: '2024-01-15 10:30:00',
-      },
-      {
-        id: 'BZ6542',
-        image: 'https://via.placeholder.com/60x60/333/FFF?text=👓',
-        title: 'BOLON Classic Aviator Polarized Sunglasses, Exclusive Eyewear Brand...',
-        original_price: '¥1,999',
-        current_price: '¥1,000',
-        sales: 2000,
-        views: 392,
-        stock: 2455,
-        status: 'down',
-        status_text: '已下架',
-        sku_id: 'BS55666665',
-        supplier: '商家科技有限公司',
-        create_time: '2024-01-15 10:30:00',
-      },
-      {
-        id: 'BZ6542',
-        image: 'https://via.placeholder.com/60x60/333/FFF?text=👓',
-        title: 'BOLON Classic Aviator Polarized Sunglasses, Exclusive Eyewear Brand...',
-        original_price: '¥1,999',
-        current_price: '¥1,000',
-        sales: 2000,
-        views: 392,
-        stock: 2455,
-        status: 'down',
-        status_text: '已下架',
-        sku_id: 'BS55666665',
-        supplier: '商家科技有限公司',
-        create_time: '2024-01-15 10:30:00',
-      },
-    ],
-  },
-};
-
-// 商品类型数据
-const goodsTypeData = {
-  error: 0,
-  msg: 'success',
-  data: {
-    status: [
-      { name: '全部商品(200)', type: 'all' },
-      { name: '已上架(150)', type: 'up' },
-      { name: '已下架(40)', type: 'down' },
-      { name: '已隐藏(10)', type: 'hidden' },
-    ],
-    activity_type: [],
-  },
-};
-
 export default {
   /**
    * 系统初始化接口
@@ -623,11 +460,4 @@ export default {
   account: {
     rules: () => menuRulesData,
   },
-  /**
-   * 商品相关接口
-   */
-  goods: {
-    list: () => goodsListData,
-    getType: () => goodsTypeData,
-  },
 };