File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,8 @@ import VueI18n from 'vue-i18n'
4
4
import { initI18n } from '@opentiny/vue-locale'
5
5
import { Loading } from '@opentiny/vue'
6
6
import App from '@/App.vue'
7
- import { $local } from '@/uses'
8
7
9
- const mode = $local . mode || 'pc'
8
+ const mode = location . pathname . split ( '/' ) [ 1 ] || 'pc'
10
9
11
10
Vue . prototype . tiny_mode = { value : mode }
12
11
Vue . prototype . isPcMode = mode === 'pc'
Original file line number Diff line number Diff line change @@ -4,10 +4,9 @@ import VueI18n from 'vue-i18n'
4
4
import { initI18n } from '@opentiny/vue-locale'
5
5
import { Loading } from '@opentiny/vue'
6
6
import App from '@/App.vue'
7
- import { $local } from '@/uses'
8
7
9
8
Vue . config . productionTip = false
10
- const mode = $local . mode || 'pc'
9
+ const mode = location . pathname . split ( '/' ) [ 1 ] || 'pc'
11
10
12
11
Vue . prototype . tiny_mode = { value : mode }
13
12
Vue . prototype . isPcMode = mode === 'pc'
You can’t perform that action at this time.
0 commit comments