mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-31 14:33:44 +00:00
prefix
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
module.exports = {
|
||||
name: 'Ant Design Admin',
|
||||
prefix:'antdAdmin',
|
||||
footerText: 'Ant Design Admin 版权所有 © 2016 由 zuiidea 支持',
|
||||
logoSrc:'https://t.alipayobjects.com/images/rmsweb/T1B9hfXcdvXXXXXXXX.svg',
|
||||
logoText:'Antd Admin',
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
const Mock = require('mockjs')
|
||||
const Watch = require("watchjs")
|
||||
import {config} from './index'
|
||||
|
||||
export default function mockStorge(name, defaultValue) {
|
||||
let key = 'antdAdmin' + name
|
||||
let key = config.prefix + name
|
||||
global[key] = localStorage.getItem(key)
|
||||
? JSON.parse(localStorage.getItem(key))
|
||||
: defaultValue
|
||||
|
||||
Reference in New Issue
Block a user