feat(core): 独立使用新的localStorage区域,避免与2.0共用
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
window.VIEW = scriptUrl.searchParams.get('view') || 'board';
|
||||
let config = {};
|
||||
try {
|
||||
config = JSON.parse(localStorage.getItem('mixly2.0') ?? '{}');
|
||||
config = JSON.parse(localStorage.getItem('mixly3.0') ?? '{}');
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ Env.hasSocketServer = false;
|
||||
Env.hasCompiler = false;
|
||||
|
||||
/**
|
||||
* 获取当前mixly2.0的路径
|
||||
* 获取当前mixly的路径
|
||||
* @type {String}
|
||||
*/
|
||||
Env.clientPath = null;
|
||||
|
||||
@@ -7,9 +7,9 @@ goog.provide('Mixly.LocalStorage');
|
||||
const { MArray, LocalStorage } = Mixly;
|
||||
|
||||
LocalStorage.PATH = {
|
||||
USER: 'mixly2.0/user',
|
||||
BOARD: 'mixly2.0/boards/{{d.boardType}}/user',
|
||||
THIRD_PARTY: 'mixly2.0/boards/{{d.boardType}}/third_party/{{d.thirdPartyName}}'
|
||||
USER: 'mixly3.0/user',
|
||||
BOARD: 'mixly3.0/boards/{{d.boardType}}/user',
|
||||
THIRD_PARTY: 'mixly3.0/boards/{{d.boardType}}/third_party/{{d.thirdPartyName}}'
|
||||
};
|
||||
|
||||
LocalStorage.set = function (path, value) {
|
||||
|
||||
@@ -14,7 +14,7 @@ const { Env, Config } = Mixly;
|
||||
const { SOFTWARE } = Config;
|
||||
|
||||
/**
|
||||
* 获取当前mixly2.0的路径
|
||||
* 获取当前mixly的路径
|
||||
* @type {String}
|
||||
*/
|
||||
Env.clientPath = null;
|
||||
|
||||
Reference in New Issue
Block a user